How to change color in placeholder text in QLineEdit to real black?
Solved
General and Desktop
-
Hi,
I find topic:
https://forum.qt.io/topic/90176/change-qlineedit-placeholder-text-colorI tried @SGaist method and it is very good, but when I tried:
QPalette pal; pal.setColor(QPalette::Text, QColor(0,0,0)); setPalette(pal);
I don't get real black (0,0,0), but something like gray.
-
See QPalette::PlaceholderText role.