Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.4, 6.3.0, 6.3.1
-
None
-
-
ebf733c6fb (qt/qtbase/dev) ebf733c6fb (qt/tqtc-qtbase/dev) 0c37eec195 (qt/tqtc-qtbase/6.2) f6cf0e9926 (qt/qtbase/6.3) f6cf0e9926 (qt/tqtc-qtbase/6.3) 69b1b91e0d (qt/qtbase/6.4) 69b1b91e0d (qt/tqtc-qtbase/6.4)
Description
When applying style sheet to QTextEdit widget, placeholder text doesn't have reduced transparency as in Qt5 anymore. It will have same alpha value as foreground color.
Minimal example is attached. When built with Qt 5.15.2, placeholder has proper alpha value. With Qt6, it is fully opaque.
prime suspect is QRenderRule::configurePalette(...) in qstylesheetstyle.cpp, line 1511 (Qt 6.3.1):
p->setBrush(cg, QPalette::PlaceholderText, pal->foreground);
This call is not there in Qt 5.15.2
Attachments
For Gerrit Dashboard: QTBUG-105049 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
424143,7 | Derive PlaceholderText color from Text color in QPalette | dev | qt/qtbase | Status: MERGED | +2 | 0 |
424461,2 | Derive PlaceholderText color from Text color in QPalette | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
424462,2 | Derive PlaceholderText color from Text color in QPalette | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
424469,2 | Derive PlaceholderText color from Text color in QPalette | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |