[Qt-interest] How do get the item values from tree Widget

Srdjan Todorovic todorovic.s at googlemail.com
Mon Jun 22 13:27:13 CEST 2009


Hi,

On 22/06/2009, Yuvaraj R <yuvaraj at ongobiz.com> wrote:
> Hi
>
>  Thanks
>
>  I tried with
>
> for(int i =0;i< 10;i++)
> {
> QTreeWidgetItem *item = ui->treeWidget.at(i)
>
> }
>  * .at(i) is not a method for QTreeWidget Item...*

Sorry, my fault. I meant child();
 http://doc.qtsoftware.com/4.5/qtreewidgetitem.html#child

Srdjan



More information about the Qt-interest-old mailing list