Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.6.1, 4.7.0
-
None
Description
When adding a context menu to QTabWidget and assigning a hover style to a tab using StyleSheets, the tab keeps its hover style even if its context menu got closed after cursor moved away from the tab. For example, unzip the TabContextMenuExample project attached, build it and follow the steps below:
- Right click on an unselected tab. A context menu should open.
- While the context menu is open, move the mouse away from the tab and click on some other widget. The context menu should close.
Expected: the tab should not have the hover style since the mouse is above another widget now.
Actual: the tab still has the hover style.
Note: the work around is the same as for QTBUG-13942 (but the problem seems a bit different since the latter bug only mentions right-most tab).