[PyKDE] PyQt4: setPaletteBackgroundColor

Patrick Stinson patrickkidd at gmail.com
Tue Feb 7 23:11:46 GMT 2006


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 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.

--
Patrick Kidd Stinson
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060208/9e103031/attachment.html


More information about the PyQt mailing list