Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112890

MessageDialog doesnt handle onAccepted and onRejected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.0
    • Quick: Dialogs
    • None
    • macOS

    Description

      I created the attached example:

      current behaviour:

      a MessageDialog is called on a clicked inside a Mouse Area. The MessageDialog is opened ok, but clicking any defined button (Ok or Cancel) is not calling any of   handles onAccepted: console.log("Accepted")
      onRejected: console.log("Rejected")

      One must define onButtonClicked: function(button, role).. in order to be able to handle the onAccepted or onRejected (see the attached example).

       

      Expected behaviour:

      One can write onAccepted or onRejected handles in MessageDialog without the use of onButtonClicked.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            q.quark Mihai Niculescu
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes