Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.1, 5.3.2, 5.4.0
-
None
-
Arch Linux, Qt 5.4, openbox window manager, LXQt desktop.
-
76de1ac0a4cd384f608a14b5d77a8cf3ef1ec868
Description
After closing a popup menu by clicking on a screen area outside the menu, mouse hover handling is broken. You have to click on the window again to fix it.
Steps to reproduce:
1. Open any one Qt5 program with context menus
2. Open the context menu using right mouse button or keyboard shortcuts
3. Click on any place outside the popup menu to close it
4. Move the mouse cursor over any buttons, line edit controls, or widgets that changes their styles on hover defined by the widget style.
Expected behavior:
The buttons should change their style on mouse hover if it's defined in the QStyle or Qss rules.
Actual behavior:
The buttons or other widgets do not change their look, just like they do not receive the mouse hover events at all. After clicking on the program window again, mouse hover effects become normal again.
If you close the popup menu using "ESC" key rather than mouse click, the bug won't be triggered.
This bug does not exist in Qt 4. We noted this problem after upgrading to Qt 5.4. It's a very annoying regression bug.
Attachments
Issue Links
- duplicates
-
QTBUG-32609 Context Menu closed when clicking into an area without any widget
-
- Closed
-
-
QTBUG-44166 XCB: First click is not working after closing a menu
-
- Closed
-
For Gerrit Dashboard: QTBUG-44231 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
105744,3 | xcb: Update mouse buttons from MotionNotify events | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |
180710,5 | xcb: Ignore XI2 LMB mouse events from touch screens | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |