Qt Creator 3.6.1 - Based on Qt 5.6.0 (MSVC 2013, 32 bit) - Windows 10
Hello,
qApp->setStyleSheet("QGroupBox, QComboBox, QRadioButton, QPushButton, QLabel, QLineEdit"
"{ color: blue }"); // text colour
ui->myComboBox->setStyleSheet("QListView { color: blue; }");
ui->myComboBox->setStyleSheet("QComboBox { background-color: white }");
qApp->setStyleSheet("QGroupBox, QComboBox, QRadioButton, QPushButton, QLabel, QLineEdit"
"{ color: blue }"); // text colour
ui->myComboBox->setStyleSheet("QListView { color: blue; }");
ui->myComboBox->setStyleSheet("QComboBox { background-color: white }");
To copy to clipboard, switch view to plain text mode
I'm trying to set the text colour and the dropdown list text colour on a QComboBox.
I tried changing the order and it seems that the last setStyleSheet is the one that takes effect.
How do I apply both to the QComboBox?
Regards
Bookmarks