On 21.01.07 07:33:51, Tony Cappellini wrote: > I've changed the background color of the form in my project- one click of > the mouse. > QTDesigner spews out all of this code- just to change the background color. > Why so much to change only one color?
I can't confirm this, here designer sets Base and Window role for the 3 palettes one has (active,inactive and disabled) and both uic4 and pyuic4 translate these into the same code which exactly reflects this. In particular my pyuic code doesn't look like > palette = QtGui.QPalette() > palette.setColor(QtGui.QPalette.Active,QtGui.QPalette.ColorRole(0), > QtGui.QColor(0,0,0)) this. I suspect that there's both a bug in Qt designer and in pyuic4 which got resolved already - I'm using Qt4.2 here together with a not very old PyQt4 snapshot. Andreas -- Your temporary financial embarrassment will be relieved in a surprising manner. _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
