[PyQt] Re: QWidget invalid layout

Christoph Burgmer chrislb at gmx.de
Thu Apr 17 12:22:04 BST 2008

You wrote:
> I'm having some problems with PyQt4. I'm trying to make a QWidget window
> but when I run the generated code I get a window with all child widgets
> in the top left corner stacked onto of each other (see attached
> PyQt-4.3.3.jpg). The child widgets also does not resize.
> The form is correctly displayed in QtDesigner and the same behaviour is
> seen both under Windows (2000) an d Linux, both using Qt-4.3.

Check your command line. It sais:

QLayout: Attempting to add QLayout "" to TestApp "AtletMainWidget", which 
already has a layout

Looks like you need to take another class for your TestApp do derive from.
QWidget should work.

Hope that helps


More information about the PyQt mailing list