PDA

View Full Version : QComboBox and style



Lele
17th July 2006, 13:42
Hi,
while experimenting with NorwegianWoodStyle I tried to derive it from PlastiqueStyle rather than MotifStyle, everything is ok apart from the area arounf the combobox.
Since I'd like to make a custom style I can't understand how to fix it deriving from Plastique.

thanks for any help

jpn
17th July 2006, 15:09
You may start from examining QPlastiqueStyle::drawComplexControl()... ;)
The plastique style most probably uses only a background color instead of a brush for drawing combo box's background.

Lele
17th July 2006, 16:36
Thanks, I'll try to figure it out which enum tag represents combo box's background.
Anyone knows?
bye

jpn
17th July 2006, 16:41
I'm pretty sure the background is drawn in QStyle::drawComplexControl(CC_ComboBox).