diff options
Diffstat (limited to 'share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml')
-rw-r--r-- | share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml b/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml new file mode 100644 index 0000000000..74609d82c8 --- /dev/null +++ b/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml @@ -0,0 +1,25 @@ +import QtQuick 2.2 +import QtQuick.Controls 1.1 +import QtQuick.Window 2.0 + +ApplicationWindow { + title: qsTr("Hello World") + width: 640 + height: 480 + + menuBar: MenuBar { + Menu { + title: qsTr("File") + MenuItem { + text: qsTr("Exit") + onTriggered: Qt.quit(); + } + } + } + + Button { + text: qsTr("Hello World") + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + } +} |