The QPalette::Base role is responsible for the color of the box.
The following snippet would set it do blue.
Qt Code:
cb.setPalette( p );To copy to clipboard, switch view to plain text mode
See
http://doc.trolltech.com/4.2/qpalett...ColorRole-enum
This also should solve your QComboBox problem.




Reply With Quote
Bookmarks