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)

    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

        1. Bildschirmaufnahme 2023-02-25 um 17.14.49.mov
          409 kB
          Sebastian Beckmann
        2. QTBUG Sample Project.zip
          6 kB
          Sebastian Beckmann

        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: