Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
None
-
5.12.9
-
None
-
Win 10, Ubuntu 16.04, MacOS 10.15
Description
When trying to set the color to placeholdertext of QLineEdit in QComboBox, setPalette() does not work.
QComboBox* a = new QComboBox(); a->setEditable(true); QPalette a_palette = a->lineEdit()->palette(); a->lineEdit()->setPlaceholderText("test combobox"); a_palette.setColor(QPalette::Normal, QPalette::PlaceholderText, QColor("#00FF00")); a->lineEdit()->setPalette(a_palette);