import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Controls.Styles 1.1 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 import QtQuick.Window 2.0 import CodeEditorExtensionManager 1.0 ApplicationWindow { id: mainApplication visible: true x: Screen.width / 2 - width / 2 y: Screen.height / 2 - height / 2 width: 1200 height: 600 minimumWidth: 400 minimumHeight: 300 title: qsTr("mix") menuBar: MenuBar { Menu { title: qsTr("File") MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } } } MainContent { } Dialog { x: mainApplication.x + (mainApplication.width - width) / 2 y: mainApplication.y + (mainApplication.height - height) / 2 objectName: "dialog" id: dialog height: 400 width: 700 modality: Qt.WindowModal contentItem: Rectangle { objectName: "dialogContent" } } Dialog { x: mainApplication.x + (mainApplication.width - width) / 2 y: mainApplication.y + (mainApplication.height - height) / 2 objectName: "messageDialog" id: messageDialog height: 150 width: 200 modality: Qt.WindowModal contentItem: Rectangle { objectName: "messageContent" } } }