[Interest] QTextEdit and Style sheets

Tony Rietwyk tony at rightsoft.com.au
Tue Mar 13 00:39:58 CET 2012


Hi Graham, 

 

Have you tried using  url(qrc:/images/Chrysanthemum.png) ?  

 

Sorry, I can't find a help reference for this. 

 

Tony.

 

 

 

From: interest-bounces+tony=rightsoft.com.au at qt-project.org
[mailto:interest-bounces+tony=rightsoft.com.au at qt-project.org] On Behalf Of
graham labdon
Sent: Monday, 12 March 2012 9:04 PM
To: interest at qt-project.org
Subject: [Interest] QTextEdit and Style sheets

 

Hi
I am trying to set a background image on a QTextEdit using setStyleSheet -

textEdit->setStyleSheet(QString::fromUtf8("background-image:
url(:/images/Chrysanthemum.png);background-attachment: fixed"));

However, this doe not work.

Am i misunderstanding the documentation or is it not possible?

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120313/6700e2c4/attachment.html>


More information about the Interest mailing list