aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/app
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-04 11:21:15 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-04 11:21:15 +0200
commitcd55710098cc8472e6895b7d94f47f016a1382b1 (patch)
tree92d54092a76e46f5483c78990401d5e12db3aebd /examples/qml/app
parent261b9a229bd0bb3868d0727bb6b098af778a88a8 (diff)
Put sources into dedicated directories
Change-Id: I424377f4a25f45f6bfcea84ce59812fb674a861b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'examples/qml/app')
-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
+ }
+ }
+
+}