Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.9.6, 5.12.0 Beta 4
-
Fix Version/s: 5.13.1, 5.14.0 Alpha
-
Component/s: GUI: Look'n'Feel
-
Labels:
-
Platform/s:
-
Commits: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