Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.x, 5.5.1
-
Windows with -style windowsvista
-
2fe10c8dd02c7a9f37a0993f144f7988618943f0 (qtbase/5.6. 23.4.2016, 5.6.1)
Description
The attached example can be used to reproduce the issue.
Steps to reproduce:
1. run the example
2. check the "Menu" item background color
Expected result:
The "Menu" item background should be red
Actual result:
The "Menu" item background is not red
As a workaround one can set the stylesheet like this:
menuBar.setStyleSheet(QStringLiteral("QMenuBar , QMenuBar::item { background-color: rgb(255, 0, 0); }"));
Attachments
For Gerrit Dashboard: QTBUG-49115 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
139940,3 | QWindowsVistaStyle: Fix CE_MenuBarItem with QStyleSheetStyle. | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |