Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
4.8.4, 5.0.1, 5.6.0, 5.12.3, 5.15.5, 6.1.2
-
Cataliina
-
-
91d53ba22e1de1c81e9f082517fd81d711c69909 (qt/tqtc-qtbase/6.1) 59a06f2281e230a5ceef687a823de0ea7f7f7b63 (qt/tqtc-qtbase/6.2) 70b94eea10d7af83cced09296755a8af28e167b5 (qt/tqtc-qtbase/dev) 56082c28fe89d204822862853961f292ac42d96b (qt/tqtc-qtbase/5.15)
Description
An application window can be closed using the close button from the titlebar on Mac even while context menu is shown. This is consistent with native macOS applications. However, the context menu remains open and visible (unless the application quits in response to the window closing, obviously).
Steps to reproduce:
- run the attached reproducer in QTBUG30522.zip, which turns off the QApplication::setQuitOnLastWindowClosed property
- right-click in the window to open a context menu
- click on the window close button in the top left corner of the window
Expected behaviour:
The context menu should be closed together with the application window (in fact, before the application window)
Actual behaviour:
Application window is closed, but the context menu remains.
Attachments
Issue Links
- relates to
-
QTBUG-44274 [OS X] When a context menu is shown that has a top level parent then it should not be possible to close the parent
- Reported
-
QTBUG-84305 closing while QMenu in exec causes crash on macOS. Missing grab for mouse click focus?
- Reported