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();
>>>
>
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
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
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
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
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
-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
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
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
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
@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
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
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?
13 matches
Mail list logo