QComboBox background color

coxunmellow

New Member
I have created a Qt HMI with QtDesigner and ui files. My QComboBox doesn't have the same background color in the designer and in real:Designer:
or6ff.jpg
Real life:
M2myw.jpg
I am under Windows 7. Maybe it is OS dependent but I would like to have a white background.I tried:\[code\]comboBox->setStyleSheet("QComboBox { background-color: white; }");\[/code\]but it also paints the right arrow.Any explanation?
 
Back
Top