summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/qml/qtquick_2_2/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/qml/qtquick_2_2/main.qml')
-rw-r--r--share/qtcreator/templates/qml/qtquick_2_2/main.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/qtcreator/templates/qml/qtquick_2_2/main.qml b/share/qtcreator/templates/qml/qtquick_2_2/main.qml
new file mode 100644
index 0000000000..0190f166d3
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquick_2_2/main.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.2
+
+Rectangle {
+ width: 360
+ height: 360
+ Text {
+ anchors.centerIn: parent
+ text: "Hello World"
+ }
+ MouseArea {
+ anchors.fill: parent
+ onClicked: {
+ Qt.quit();
+ }
+ }
+}
+