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

Qt6 for android QML MessageWindow does not close or respond to onAccept

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2
    • Quick: Dialogs
    • None
    • Android

    Description

      MessageDialog

      {         id: testDialog         title: "test"         onAccepted:console.log("Testing")     }

       

      In this example, the dialog will not close when pressing OK on Android.  Also, the onAccepted handler does not get called.  This works fine on Qt5 and on Qt6 it works fine on Linux and Windows. The Android platform does call onButtonClicked: so if I replace the onAccepted line with the following, then the dialog will close:

      onButtonClicked: close()

      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
            nostar Douglas McLain
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes