Watermark in QTextEdit
-
Hi
I have a QTextEdit in which I want to display a watermark
Could someone tell me if this is possible and how I can achieve thisThanks
-
Do you want a permanent background watermark or the one which disappears with a click like usernames and passwords
-
Hi
Thanks for your reply
I require a permanent background watermark -
You can have a temporary watermark using
@setPlaceholderText ("some text")@.
-
For permanent watermark
@lineEdit->setFrame(false);
QLineEdit {
image: url(:/images/watermark.png);
}
@