[PyQt] problem with mdisubindow background
uvemas at gmail.com
Fri Feb 13 18:31:16 GMT 2009
I'm trying to change the background of a QMdiSubwindow but it is not as
easy as I expected. For simplicity, in the attached example, I use a
QLabel as internal widget. When I try to change the label background
using the common chain
get palette + change palette + set palette
nothing happens (although it works when the QLabel is not the internal
widget of a QMdiSubWindow). I'm forced to use a style sheet. However
I'd prefer not to do it (stylesheets are not supported on Mac OS X, the
Qt docs says). The attached script shows the problem.
Could somebody help me with this problem?
PS: I'm using Qt 4.4.0 and PyQt 4.4.4
Share what you know, learn what you don't.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 645 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090213/e4010779/prova.py
More information about the PyQt