[SOVLED] MessageDialog with Yes and No button for Android



  • Hey,

    I am trying to make a MessageDialog containing a yes and a no button with this code:

    MessageDialog {
        id: quitDialog
        title: "Quit"
        text: "Really Quit?"
        icon: StandardIcon.Warning
        standardButtons: StandardButton.Yes | StandardButton.No
        onNo: {
            visible = false
        }
        onYes: {
            appstate.quit();
        }
    
        visible: false
    }
    

    Now, running this in anroid only an "OK" button is shown. Why and how can I fix this?



  • I forgot to import QtQuick.Dialogs 1.2, stupid me


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.