[Qt-interest] QComboBox style sheet

Richard Stellingwerff remenic at gmail.com
Wed Nov 11 08:34:51 CET 2009


Hi,

Using Qt 4.5.3 I'm trying to change the appearance of a QComboBox by setting
its background and border values using Qt Style Sheets. However, when I
change the background value, depending on which style is used, certain
elements from the popup list change with it. For example, using the
Clearnlooks style, the selection color of the popup list gets the same color
as the QComboBox's new background color. In Plastique, it appears to get a
colored border.

How can I change the background color of a QComboBox without affecting its
popup list?

Kind regards,
Richard Stellingwerff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091111/25b6074f/attachment.html 


More information about the Qt-interest-old mailing list