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

[REG 6.4 -> 6.5-beta3] Exec'd QMessageBoxes from QMenus return immediately on macOS

    XMLWordPrintable

Details

    • macOS
    • 4e59a5252 (dev), 805f40924 (6.5.0), 4c7e342f6 (6.5), dcff882f3 (dev), 239de8cde (6.5), 162ce53fc (6.5.1)

    Description

      When spawning QMenu and using it to create a QMessageBox, when exec-ing said messagebox it returns immediately with return value 0 (NoButton). Sometimes (but not always) the native-looking messagebox is visible for a frame or two.

      This is new to Qt 6.5. In Qt 6.4, the Qt generated messagebox correctly pops up and blocks until the user presses a button (or closes the dialog with other means).

      I attached a minimal sample below that demonstrates the behavior.

      I could not confirm other platforms, seeing the switch from Qt-generated to native messageboxes I would assume this to likely be exclusive to macOS.

      Attachments

        For Gerrit Dashboard: QTBUG-111524
        # Subject Branch Project Status CR V

        Activity

          People

            vestbo Tor Arne Vestbø
            sebastianbeckmann Sebastian Beckmann
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: