medved6
10th September 2010, 06:28
Hi Everybody.
How can I change the color of tab button?
I can change the color of tab( widget itself by setting up the pallete ) but cannot find the way to change tab button ( the button you press to change the tab ).
mTabWidget = new QTabWidget;
mTabWidget->setStyleSheet("QToolButton { border-width: 1px; border-style: solid; border-color: green; background-color: red;}");
does not work.
Also how can I change color of the rect around tabs ?
If I change border color of the tab widgets the overall border color still partially remains gray.
UPD:
problem solved ( found Customizing QTabWidget and QTabBar )
How can I change the color of tab button?
I can change the color of tab( widget itself by setting up the pallete ) but cannot find the way to change tab button ( the button you press to change the tab ).
mTabWidget = new QTabWidget;
mTabWidget->setStyleSheet("QToolButton { border-width: 1px; border-style: solid; border-color: green; background-color: red;}");
does not work.
Also how can I change color of the rect around tabs ?
If I change border color of the tab widgets the overall border color still partially remains gray.
UPD:
problem solved ( found Customizing QTabWidget and QTabBar )