What was wrong with the previous example given to do just that? When you delete 
a parent, the children automatically go with it. 



On Sep 2, 2012, at 10:31 PM, PBLN RAO <[email protected]> wrote:

> thirstydevil,
> 
> i want to delete the a QFrame item including all its children.
> QFrame is grandchild of a ScrollArea which has a QWidget 
> (scroll_shotslistArea) which in turn has vertical layout in it.
> 
> find the attachment for hierarchy that i have.
> 
> At the run time in maya, using PyQt ui will be a QFrame to 
> "scroll_shotslistArea" and QFrame will be added objects 
> (button,combobox,labels, etc.,)
> i will have a button to delete this "scroll_shotslistArea".
> 
> so i want to know how can i deleted the QFrame including all its children 
> that i created in "scroll_shotslistArea"
> 
> On Friday, August 31, 2012 6:14:38 PM UTC+5:30, thirstydevil wrote:
> object.widget().deleteLater()
> from the web:
> def clearLayout(layout):
> 
>   while layout.count():
> 
>     child = layout.takeAt(0)
> 
>     c.widget().deleteLater()
> 
> 
> 
> 
> On Fri, Aug 31, 2012 at 12:37 PM, PBLN RAO <[email protected]> wrote:
> Hi All,
> 
>   How to delete a QFrame and all its children in PyQt.
> 
>   I goggled all the web but couldn't find a solution.
> 
>   Can any one suggest a solution.?
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe
> 
> 
> 
> -- 
> David Moulder
> http://www.google.com/profiles/squish3d
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe
> <Design.JPG>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to