Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.10
- import QtQuick.Window 2.10
- import QtQuick.Controls 2.3
- ApplicationWindow{
- visible: true;
- width: 1280;
- height: 720;
- Dialog {
- id: dialog
- x:(parent.width-width)/2
- y:(parent.height-height)/2
- implicitWidth: 500;
- implicitHeight: 300;
- title: "Title"
- modal: true;
- standardButtons: Dialog.Ok | Dialog.Cancel
- onAccepted: console.log("Ok clicked")
- onRejected: console.log("Cancel clicked")
- }
- Button{
- text: "open";
- onClicked: {
- dialog.open();
- }
- }
- }
Add Comment
Please, Sign In to add comment