Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.12
- import QtQuick.Controls 2.12
- ApplicationWindow {
- visible: true
- width: 640
- height: 480
- title: qsTr("Hello World")
- header: ToolBar {
- Row {
- ToolButton {
- text: qsTr("popup1")
- onClicked: popup1.open()
- }
- }
- }
- Page {
- width: parent.width/2
- height: parent.height
- Rectangle {
- anchors.fill: parent
- color: "green"
- }
- MyPopup {
- id: popup1
- }
- }
- Page {
- width: parent.width/2
- height: parent.height
- x: parent.width/2
- Rectangle {
- anchors.fill: parent
- color: "blue"
- }
- header: ToolBar {
- ToolButton {
- text: qsTr("popup2")
- onClicked: popup2.open()
- }
- }
- MyPopup {
- id: popup2
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement