summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/qtquick/qtquickcontrols_1_1/qml/app/main.qml
blob: b257de0b83dec3437a88b454645e61ebc68e3762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.2
import QtQuick.Controls 1.1

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.centerIn: parent
    }
}