PDA

View Full Version : QComboBox text color problem with CSS



kuku83
11th July 2012, 08:31
We want to fix the text color of a combobox with a css stylesheet but it do not works

QComboBox{font-family:Italic;font-size:52px;font-color:white;background:#fff; border-color:#a1c60e;border-width:4px;border-style:solid;border-radius:8px 8px 8px 8px;}

The text appears in black ...

Thanks in advance

Sergio

high_flyer
11th July 2012, 15:06
Where did you see in the docs the property: 'font-color'?
Try this instead:
http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#paletterole