summaryrefslogtreecommitdiffstats
path: root/examples/qml/app/xxxxxx-qml-app.qml
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-04 11:21:15 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:21:42 +0200
commit14f27cbe44073ef2ade633a79d40ba11e8ad497b (patch)
tree701423369566b43eb72aca972e3e3a157509c6af /examples/qml/app/xxxxxx-qml-app.qml
parent37540ff3c6e32f5d02c2bb3cafd964ff1753d1fa (diff)
Put sources into dedicated directories
Change-Id: I424377f4a25f45f6bfcea84ce59812fb674a861b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'examples/qml/app/xxxxxx-qml-app.qml')
-rw-r--r--examples/qml/app/xxxxxx-qml-app.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/qml/app/xxxxxx-qml-app.qml b/examples/qml/app/xxxxxx-qml-app.qml
new file mode 100644
index 0000000..6333144
--- /dev/null
+++ b/examples/qml/app/xxxxxx-qml-app.qml
@@ -0,0 +1,34 @@
+import QtQuick 2.0
+import QtQuick.Window 2.0
+import QtQuick.Controls 1.4
+
+Window {
+ // WINDOW PROPERTIES
+
+ visible: true
+ width: 320
+ height: 240
+
+ // WIDGETS
+
+ Rectangle {
+ anchors.centerIn: parent
+
+ Column {
+ Label {
+ text: "Hello World!"
+ font.pixelSize: 28
+ font.bold: true
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+ Button {
+ text: "Quit"
+ onClicked: { Qt.quit() }
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+ anchors.centerIn: parent
+ spacing: 20
+ }
+ }
+
+}