Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.8, 6.2.3
-
None
-
4ac00ca901 (qt/qtbase/dev) 4ac00ca901 (qt/tqtc-qtbase/dev) 7a5ca30587 (qt/qtbase/6.2) 231a4d5282 (qt/qtbase/6.3) 7a5ca30587 (qt/tqtc-qtbase/6.2) 231a4d5282 (qt/tqtc-qtbase/6.3)
Description
QTabBar::setTabTextColor does not change color of the text in the tab if QPalette::Base background role is used even if valid color is specified.
Documentation says the following (https://doc.qt.io/qt-6/qtabbar.html#setTabTextColor):
"Sets the color of the text in the tab with the given index to the specified color.
If an invalid color is specified, the tab will use the QTabBar foreground role instead."
According to documentation, the color of the text of the tab should change as there are no limitations mentioned regarding the background role. Even if QPalette::Base would be wrong role to be used for QTabWidget, this limitation should be mentioned in the documentation or then there is a bug.