Re: [Interest] QTextEdit and Style sheets

2012-03-14 Thread André Somers
Op 13-3-2012 17:26, Christoph Feck schreef: > On Tuesday 13 March 2012 16:52:21 André Somers wrote: >> Op 13-3-2012 16:45, Graham Labdon schreef: >>> Hi everyone >>> >>> Solved this! >>> >>> edit->setStyleSheet("background-image:url(:/images/bg.jpg)"); >>> >>> QPalettepalette=edit->palette(); >>> >

Re: [Interest] QTextEdit and Style sheets

2012-03-14 Thread Bo Thorsen
Den 13-03-2012 17:26, Christoph Feck skrev: > You have to change the background of the viewport() instead, otherwise > the viewport will render its background over that of the QTextEdit > object. So it is not a bug, but expected behavior. Using setPalette() > also affects the viewport, because the

Re: [Interest] QTextEdit and Style sheets

2012-03-13 Thread Christoph Feck
On Tuesday 13 March 2012 16:52:21 André Somers wrote: > Op 13-3-2012 16:45, Graham Labdon schreef: > > Hi everyone > > > > Solved this! > > > > edit->setStyleSheet("background-image:url(:/images/bg.jpg)"); > > > > QPalettepalette=edit->palette(); > > > > palette.setBrush(QPalette::Base,Qt::NoBr

Re: [Interest] QTextEdit and Style sheets

2012-03-13 Thread André Somers
bdon=avalonsciences@qt-project.org] *On Behalf Of *Graham Labdon *Sent:* 13 March 2012 10:06 *To:* Graham Labdon; Tony Rietwyk *Cc:* interest@qt-project.org *Subject:* Re: [Interest] QTextEdit and Style sheets Hi everyone There seems to be a bug with setting a background image in QTextEdit unde

Re: [Interest] QTextEdit and Style sheets

2012-03-13 Thread Graham Labdon
bdon=avalonsciences@qt-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Graham Labdon Sent: 13 March 2012 10:06 To: Graham Labdon; Tony Rietwyk Cc: interest@qt-project.org Subject: Re: [Interest] QTextEdit and Style sheets Hi everyone There see

Re: [Interest] QTextEdit and Style sheets

2012-03-13 Thread Graham Labdon
h 2012 08:57 To: Tony Rietwyk Cc: interest@qt-project.org Subject: Re: [Interest] QTextEdit and Style sheets 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 QTe

Re: [Interest] QTextEdit and Style sheets

2012-03-13 Thread Graham Labdon
-project.org [mailto:interest-bounces+graham.labdon=avalonsciences@qt-project.org] On Behalf Of Tony Rietwyk Sent: 12 March 2012 23:40 To: interest@qt-project.org Subject: Re: [Interest] QTextEdit and Style sheets Hi Graham, Have you tried using url(qrc:/images/Chrysanthemum.png) ? Sorry, I can&#

Re: [Interest] QTextEdit and Style sheets

2012-03-12 Thread Tony Rietwyk
abdon Sent: Monday, 12 March 2012 9:04 PM To: interest@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.pn

Re: [Interest] QTextEdit and Style sheets

2012-03-12 Thread Jason H
om: Graham Labdon To: Jason H Cc: "interest@qt-project.org" Sent: Monday, March 12, 2012 9:12 AM Subject: RE: [Interest] QTextEdit and Style sheets I realise that using the colon implies a compilied in resource but this resource exits and can be used to set the background im

Re: [Interest] QTextEdit and Style sheets

2012-03-12 Thread Bill Crocker
Behalf Of *Jason H > *Sent:* 12 March 2012 12:23 > *To:* interest@qt-project.org; graham.lab...@hotmail.co.uk > *Subject:* Re: [Interest] QTextEdit and Style sheets > > You've understanding it fine. But the colon in the filename means, it's a > complied-in resource. W

Re: [Interest] QTextEdit and Style sheets

2012-03-12 Thread Graham Labdon
@qt-project.org] On Behalf Of Jason H Sent: 12 March 2012 12:23 To: interest@qt-project.org; graham.lab...@hotmail.co.uk Subject: Re: [Interest] QTextEdit and Style sheets You've understanding it fine. But the colon in the filename means, it's a complied-in resource. While you devel

Re: [Interest] QTextEdit and Style sheets

2012-03-12 Thread Jason H
You've understanding it fine. But the colon in the filename means, it's a complied-in resource. While you develop/test, I would suggest taking the colon out and using the file system. All you have to do without using  style sheets is subclass QTextEdit then re implement draw, draw your water m

[Interest] QTextEdit and Style sheets

2012-03-12 Thread graham labdon
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?