QML退出进程例子

abc
MessageDialog {
id:msgbox
standardButtons: StandardButton.Yes | StandardButton.No
modality: Qt.ApplicationModal
title: "message"
text:"try to close app?"
onYes:{
Qt.quit();
}
}

onClosing:{
console.log("try to close app.");
close.accepted = false;
msgbox.open();
}