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-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-13 Thread Graham Labdon
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 QTextEdit under Windows7

Re: [Interest] QTextEdit and Style sheets

2012-03-13 Thread André Somers
-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 under windows -- This line

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::NoBrush);

[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?

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

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 develop/test, I

Re: [Interest] QTextEdit and Style sheets

2012-03-12 Thread Jason H
Labdon graham.lab...@avalonsciences.com To: Jason H scorp...@yahoo.com Cc: interest@qt-project.org 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