Last active
August 29, 2015 14:21
-
-
Save jeffbair/968e8118262f07b23329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import QtQuick.Controls 1.3 | |
import QtQuick.Dialogs 1.2 | |
Rectangle { | |
width: 800 | |
height: 600 | |
Button { | |
id: btn | |
x: 362 | |
y: 319 | |
text: qsTr("Freeze") | |
onClicked: { | |
loadDialog.visible = true | |
ctrl.doFreeze() | |
} | |
} | |
MessageDialog { | |
objectName: "loadDialog" | |
id: loadDialog | |
title: "Title" | |
text: "Test" | |
standardButtons: StandardButton.Cancel | |
onAccepted: { | |
console.log("Test") | |
Qt.quit() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment