Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.1, 5.8.0, 5.9.0 Beta 4
-
OS X El Capitan 10.11.5
Description
A context menu behaves incorrectly if it is opened by a mouse right click on an inactive window. The context menu disappears if the mouse cursor is moved away from the menu without first touching the menu. The menu stays open if the mouse cursor is moved on top of the menu. After the mouse visits the menu surface the menu no longer disappears even if the mouse is moved away from it. If the right mouse button is then clicked again elsewhere on the application window, the first right click closes the previous context menu that was left open but doesn't open a new one.
Steps to reproduce:
1. Open 'Menus' example in Qt Creator.
2. Open some native application with a small window alongside of the Qt app 'Menus'.
3. Click on the native app so that Qt app is left inactive (without focus).
4. Bring the mouse cursor on the inactive Qt app and press right mouse button.
EXPECTED: Qt app remains inactive but a context menu appears. The context menu stays open regardless of how the mouse cursor is moved. Another right click somewhere else on the app window closes the previous context menu and opens a new one in the new location.
ACTUAL: The context menu exhibits the incorrect behavior described above.
This might be related to QTBUG-48318
Attachments
Issue Links
- is duplicated by
-
QTBUG-68359 [macOS] context menu doesn't stay open in a window that doesn't have focus
- Closed