Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.6.0
-
None
-
Windows 7
-
25c9a6c9b46e6ae58dcccdc3ba158d14945cbf33
Description
In Windows, moving the mouse over a QMenu will generate two enter events and moving the mouse out of the menu will send two leave events. Also,. with tear-off enabled, going over the tear-off bar will trigger the first enter event and moving on the menu will generate the second.
If a sub menu is tear-off-able, moving the mouse over the tear-off bar (without entering the sub-menu) will generate a leave event on the first menu and will close the sub-menu.
On Mac and Linux, no enter event is generated when going over the tear-off bar, the enter event is only generated when going over the sub-menu's items also triggering the a leave event for the main menu. Contrarily to Windows leaving the mouse over the tear-off bar will not close the sub-menu.
Attached a simple test case
Attachments
Issue Links
- relates to
-
QTBUG-52087 Submenus are closed after a timeout if they were opened by a finger tap (X11)
- Closed
For Gerrit Dashboard: QTBUG-53068 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
157651,1 | QMenu: Prevent tearable submenu from closing | 5.6 | qt/qtbase | Status: ABANDONED | -2 | 0 |
158072,5 | QMenu auto-test: Add test for two-level tearable menus | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
158073,12 | QtWidgets: Fix enter/leave events on popup menus | 5.6 | qt/qtbase | Status: MERGED | -2 | 0 |