PDA

View Full Version : stylesheet code for width of a TabBar of a QTabWidget



mstegehu
30th May 2011, 15:59
Hello,

Is it possible to change the width of specific tabs of a QTabBar of a QTabWidget?

I tried this but thats seems not to work:

m_calibrationTabWidget is the objectName of a QTabWidget



QTabBar::tab#m_calibrationTabWidget
{
width: 200px;
background-color: red;
}

QTabBar#m_calibrationTabWidget::tab
{
width: 200px;
background-color: red;
}


Regards,

Marcel

jeanremi
31st May 2011, 13:13
Could this work?
QTabBar:section
{
....