You can create a signal between the value 'toggled(bool)' of the checkbox
from a QGroupBox to the 'setVisible(bool)' of a QFrame, which will function
like a collpasible area.

example attached.

cheers
James


On Tue, Aug 31, 2010 at 4: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

Attachment: collapseFrame.ui
Description: Binary data

Reply via email to