Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.3.0
-
None
-
Mac mini (2020, M1)
macOS 12.4
Qt Creator 8.0.0
Qt 6.3.0
Apple clang version 13.1.6
-
-
6a5cadb955 (qt/qtbase/dev) 6a5cadb955 (qt/tqtc-qtbase/dev) bb07d03e2a (qt/qtbase/6.4) b9e18ee4a5 (qt/qtbase/6.3) b9e18ee4a5 (qt/tqtc-qtbase/6.3) bb07d03e2a (qt/tqtc-qtbase/6.4) 89d41f0644 (qt/tqtc-qtbase/6.2)
Description
- Run the combobox_crash project
- Click on the top combobox to open its popup
- Move the mouse over the window's close button
- Press the enter key to select the highlighted item and immediately click the close button
- The app will crash just after the window closes
Repeating the same steps on the bottom combobox does not cause a crash. The second combobox has its style overridden with a proxy style that returns 0 for the SH_Menu_FlashTriggeredItem style hint, which is enabled in the default style on macOS.
QComboBox::hidePopup() uses a couple of timers if this style hint is set; if the widget is destroyed before the timers return then it will cause a crash.