I have in my main.qml the following code
MessageDialog {
id: exitDialog
title: "Quit"
text: "Save before quitting?"
icon: StandardIcon.Question
standardButtons: StandardButton.Save| StandardButton.Discard | StandardButton.Cancel
onAccepted: {
...
}
onDiscard: Qt.quit()
}
The problem however is the buttons for me appear as close without Saving Cancel and last Save! The default button is set as close without saving. I want my order of buttons in the code maintained and also default set as save. Anyone face such problems? any suggestions ?
I have seen this answer How to set the default button of a MessageDialog in QML? but how do I do it for standardButtons?