PDA

View Full Version : QTextEdit watermark



GrahamLabdon
12th March 2012, 08:28
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 this

Thanks

Spitfire
13th March 2012, 15:25
On QTextEdit set your watermark image as background using setStyleSheet() and change QPalette::Base to Qt::NoBrush.

GrahamLabdon
13th March 2012, 15:42
Thank-you
It works!