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

QMessageBox return immediately on macOS if called from MenuBar and after a modal dialog

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.5.0
    • None
    • macOS

    Description

      This bug is similar to QTBUG-111524 except for the start conditions:

      • The QMessageBox have to be exec from the menuBar;
      • Before the exec of the QMessageBox a modal dialog have to be opened;

      Attached you will find an example to reproduce this error, just:

      • Build and run the application on macOS with Qt 6.5
      • Click Menu File -> Show message box
      • Close first dialog with Ok or Cancel
      • ERROR: the QMessageBox returns immediately

      Remarks

      • If you open the QMessageBox without before opening a dialog, or not via the menuBar, it is working correctly, the QMessageBox is not returning immediately.

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lsbts1291 Lorenzo Sinigaglia
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: