summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/qml/qtquickcontrols_1_2/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/qml/qtquickcontrols_1_2/main.qml')
-rw-r--r--share/qtcreator/templates/qml/qtquickcontrols_1_2/main.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_2/main.qml b/share/qtcreator/templates/qml/qtquickcontrols_1_2/main.qml
new file mode 100644
index 0000000000..8e9f3a8acc
--- /dev/null
+++ b/share/qtcreator/templates/qml/qtquickcontrols_1_2/main.qml
@@ -0,0 +1,29 @@
+import QtQuick 2.3
+import QtQuick.Controls 1.2
+import QtQuick.Window 2.2
+
+ApplicationWindow {
+ title: qsTr("Hello World")
+ width: 640
+ height: 480
+
+ menuBar: MenuBar {
+ Menu {
+ title: qsTr("File")
+ MenuItem {
+ text: qsTr("&Open")
+ onTriggered: console.log("Open action triggered");
+ }
+ MenuItem {
+ text: qsTr("Exit")
+ onTriggered: Qt.quit();
+ }
+ }
+ }
+
+ Button {
+ text: qsTr("Hello World")
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.verticalCenter: parent.verticalCenter
+ }
+}