You could subclass QWidget and add a collapse button that handles the
problem by changing the size of your widget and possibly hiding the
children.

-Judah


On Mon, Aug 30, 2010 at 11:37 AM, Christian Akesson <[email protected]>wrote:

> Really sorry to hit this group with a question regarding PyQt, but I know
> there is a lot of skillz in here that does not only pertains to pyMel.
> I have grown very accustomed to Maya's collapsible frame layout
> functionality and having the collapse action recalculating and setting the
> window size.
>
> Transitioning over to (py)Qt, I was disappointed to find that nothing seems
> to be collapsible in Qt land (at least not according to my Google searches).
> I actually need this functionality outside of Maya as well as in Maya, so I
> need to find a Qt solution and not a Maya solution.
>
> Has anyone managed to get PyQt layouts, GroupBox (preferred) or anything to
> collapse and give space in the UI for more functionality?
> Would really appreciate any pointers.
>
> Thanks,
> /Christian
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to