Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.9, 5.15.3, 6.3.0
-
macOS 10.14.6, Qt 5.15.3, Qt 5.15.9, Qt 6.3.0
-
-
df0b70eece (qt/qtbase/dev) df0b70eece (qt/tqtc-qtbase/dev) b3448282ef (qt/tqtc-qtbase/5.15) 09888b58d7 (qt/tqtc-qtbase/6.2) c38a954d9f (qt/qtbase/6.4) c38a954d9f (qt/tqtc-qtbase/6.4)
Description
If you set text color of a QLineEdit with stylesheet, for example:
ui->lineEdit->setPlaceHolderText("placeholder");
ui->lineEdit->setStyleSheet("QLineEdit {color:black}");
The placeholder text is not grayed out. Instead it is displayed black. This is a regression. It does not happen with Qt 5.15.2, but happens in Qt 5.15.3. Also tried Qt 5.15.4 preview version, it didn't fix it.
This is so disappointing I bought a commercial license so that I can use Qt 5.15.3 to fix an annoying bug. Now I got an even more annoying bug... money well spent
Attachments
Issue Links
- duplicates
-
QTBUG-93009 QPalette::PlaceholderText color is not followed after setting color in a style sheet
- Closed
- is duplicated by
-
QTBUG-95297 QLineEdit: reduce the opacity of placeholder text color when using stylesheets
- Closed
- relates to
-
QTBUG-21464 No way to change text colour in combobox button when using the GTK+ style
- Reported