-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.0
-
None
While it is possible to set tab's text color of the QTabBar by calling QTabBar::setTabTextColor(), it is not possible to set tab's background color. There is no simple way how to achieve it.
I see two possible ways:
1.
Extend public API -> add for instance a method QTabBar::setTabColor(int index, const QColor &color)
2.
Change method QTabBar::initStyleOption(QStyleOptionTab *option, int tabIndex) to be virtual
This issue may be related to QTBUG-840 (t4id 169451).