[Interest] QTextEdit and Style sheets
Graham.Labdon at avalonsciences.com
Tue Mar 13 09:57:05 CET 2012
This has me confused
I can successfully set the background image under Linux, but not under Windows7
Is there anyone out there who could verify that they can set a background image on a QTextEdit under Windows7
From: interest-bounces+graham.labdon=avalonsciences.com at qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences.com at qt-project.org] On Behalf Of Tony Rietwyk
Sent: 12 March 2012 23:40
To: interest at qt-project.org
Subject: Re: [Interest] QTextEdit and Style sheets
Have you tried using url(qrc:/images/Chrysanthemum.png) ?
Sorry, I can't find a help reference for this.
From: interest-bounces+tony=rightsoft.com.au at qt-project.org<mailto:interest-bounces+tony=rightsoft.com.au at qt-project.org> [mailto:interest-bounces+tony=rightsoft.com.au at qt-project.org]<mailto:[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<mailto:interest at qt-project.org>
Subject: [Interest] QTextEdit and Style sheets
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest