PDA

View Full Version : QToolBox qss style sheet problem



eskil
10th August 2007, 14:50
Hopefully someone can help me :)

I am using the Desinger, 4.3.1, and is adding a stylesheet to a QToolBox.

I am trying to add all the styles and ui withouth needing to recompile the code, so I need to solve this in the script and ui files.

From the documentation


QToolBox
Supports the box model.

The individual tabs can by styled using the ::tab subcontrol. The tabs support the :only-one, :first, :last, :middle, :previous-selected, :next-selected, :selected pseudo states.



I get to style the different tabs by

QToolBox::tab

But do not get

QToolBox::tab:first

and

QToolBox::tab:last

to work.

QToolBox::tab {
border-image: url(:/images/pushbutton4.png) 8;
border-width: 8;
}

QToolBox::tab:first {
border-image: url(:/images/pushbutton4_first.png) 8;
border-width: 8;
}

QToolBox::tab:last{
border-image: url(:/images/pushbutton4_last.png) 8;
border-width: 8;
}

girish
17th August 2007, 17:45
This was a bug. This is fixed in 4.3.2.