[PyKDE] too much code generated by QtDesigner for color change

David Boddie david at boddie.org.uk
Sun Jan 21 17:51:13 GMT 2007


On Sunday 21 January 2007 17:27:36 +0100, Rick van Hattem wrote:

> On Sunday 21 January 2007 16:33, 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?
>
> The question is, did QtDesigner gave all this code? (check the .ui file for
> that) or is pyuic generating a lot of obsolete code. If it's the former
> then I suggest you address this issue to Trolltech instead of this
> mailinglist since it would not be a PyQt issue.

The code looks like it was generated by pyuic4. The .ui file might contain
more information about the palette entries than is necessary - Tony needs
to look inside the .ui file and see how many <colorrole> elements there
are.

It would also be useful to know which versions of pyuic and Qt are being
used.

David




More information about the PyQt mailing list