Skip to content

Instantly share code, notes, and snippets.

@jeffbair
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffbair/968e8118262f07b23329 to your computer and use it in GitHub Desktop.
Save jeffbair/968e8118262f07b23329 to your computer and use it in GitHub Desktop.
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