[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] PyQt4: setPaletteBackgroundColor
From:       Patrick Stinson <patrickkidd () gmail ! com>
Date:       2006-02-07 23:11:46
Message-ID: 94ef510602071511jd1601eaxd8187761ea8d2a0e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I relaize that this is a question for qt-interest, but I'm getting a slow
response.

What is the preferred method for setting the background color of a widget i=
n
qt4? I'm using palette().setColor(QPalette.Window, mycolor)), but this
setting for child widgets seems to be overriden by the color you set the
parent widget with. Are you supposed to draw a rect in paintEvent()? The
QWidget docs don't seem to say much.

--
Patrick Kidd Stinson
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/

[Attachment #5 (text/html)]

I relaize that this is a question for qt-interest, but I'm getting a slow response. \
<br> <br>
What is the preferred method for setting the background color of a
widget in qt4? I'm using palette().setColor(QPalette.Window, mycolor)),
but this setting for child widgets seems to be overriden by the color
you set the parent widget with. Are you supposed to draw a rect in
paintEvent()? The QWidget docs don't seem to say much.<br clear="all"><br>-- \
<br>Patrick Kidd Stinson<br><a \
href="http://pkaudio.sourceforge.net/">http://pkaudio.sourceforge.net/</a><br><a \
href="http://pksampler.sourceforge.net/"> http://pksampler.sourceforge.net/</a>



_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic