import QtQuick 2.2
import QtQuick.Controls 1.1

ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Test Window")

    menuBar: MenuBar {
        Menu {
            title: qsTr("File")
            Menu {
                title: "Submenu"
                MenuItem { text: "Option 1" }
                MenuItem { text: "Option 2" }
                MenuItem { text: "Option 3" }
            }
            MenuItem {
                text: qsTr("Exit")
                onTriggered: Qt.quit();
            }
        }
    }

    Text {
        text: qsTr("Hello World")
        anchors.centerIn: parent
    }
}
