Joe is right about needing to set some size constraints/policies on your widgets to control their behavior.
Just to correct one thing though... > Adding a widget as a child of a parent widget makes it position itself at > (0, 0). That's fine, I can move it around in resizeEvent. The size of the > widget is determined by its children - say if the widget is a container for > a couple of buttons, the amount of buttons and their default sizes govern > the size of the container. > > The size of the parent widget is not necessarily determined by its children. It *can* be determined by its children if a layout is installed and there are no overruling size contraints being applied to the parent. If you make widgets children of another, without a layout, they are all allowed to overlap and be cropped off by the parent. It is only the layout engine that constantly observes the children to manage the size of the parent. > But, installing a layout onto the parent of the container causes the > container to seemingly force its children to resize to an inappropriate > size. > > I could imaging that assigning a layout to a parent with children might > implicitly assign its children to the layout, but that isn't what I would > expect. Ultimately, I would like to have a completely free-floating widget. > > I would actually expect it not to mess with the layout assignments of existing children, when adding a layout. There are times when you want both layout constrained children, an floating positioned children. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0sTpXaKuXFD3xdnZDP-8PB_LPXFuF7Q%3D8E5FgEAJoS1A%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
