[Qt-interest] Delete a QtreeWidgetItem

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Fri Jun 12 11:33:05 CEST 2009


Thanks sean.

On Fri, Jun 12, 2009 at 2:40 PM, Sean Harmer <
sean.harmer at maps-technology.com> wrote:

> On Friday 12 Jun 2009 09:57:16 Sujan Dasmahapatra wrote:
> > Friends
> >
> > How could I delete a QTreeWidgetItem *item from the
> > QtreeWidget.......plss tell me someone
> Please read the documentation, it is there to help you...
>
> // For top-level items
> QTreeWidgetItem* item = myTreeWidget->takeTopLevelItem( index );
> delete item;
> item = 0;
>
> // For child items
> QTreeWidgetItem* childItem = myItem->takeItem( index );
> delete childItem;
> childItem = 0;
>
> Sean
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Senior Engineer---CFD(Computational Fluid Dynamics)
L M Glasfiber R & D (India) Pvt Ltd
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
            sdh at lmglasfiber.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090612/3f33a9a8/attachment.html 


More information about the Qt-interest-old mailing list