Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.5.3, 4.6.2
-
None
-
08d1eb4f79b9d633b97987cc55f618e6dd05e291
Description
This worked with 4.4.x, but from 4.5 the combobox doesn't respect the BackgroundRole in cleanlooks style.
Here is the code to test:
#include <QtGui> int main(int argc, char** argv) { QApplication app(argc, argv); app.setStyle(new QCleanlooksStyle); QWidget mw; QVBoxLayout *layout = new QVBoxLayout; QComboBox * comboBox = new QComboBox; layout->addWidget(comboBox); mw.setLayout(layout); comboBox->setEditable(true); comboBox->addItem("yellow"); comboBox->addItem("green"); comboBox->setItemData(0, Qt::yellow, Qt::BackgroundRole); comboBox->setItemData(1, Qt::green, Qt::BackgroundRole); qWarning() << qApp->style(); mw.show(); app.exec(); }