Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.6, 5.12.0 Beta 4
-
-
3d8ed3ba969ba958401dbf5e6760cf0788f1888e (qt/qtbase/5.13)
Description
I am using a QTabWidget with a triangular tab shape. However, I want to change the background color of the selected tab to something else than the default, but I cannot because setting the background color for the selected tab reverts the triangular shape back to default rounded shape.
I am using this style sheet
QTabWidget { background-color: rgb(0, 0, 0); qproperty-tabShape: Triangular; } QTabBar::tab:selected { color: green; background-color: pink; } QTabBar::tab:!selected { color: red; }
Please find the attached example project which demonstrates this effect. Also attached a screenshot of the end result
Attachments
For Gerrit Dashboard: QTBUG-72096 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
258912,2 | Fix: style sheet styling of background of triangular QTabWidget tabs | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |