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

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


Hi,

On 22/06/2009, Yuvaraj R <yuvaraj at ongobiz.com> wrote:
> Hi All
>
>  How do the item values from tree widget..

That makes no sense :)

> For Example i have 10 items in my tree widget..
>
> Void MainWindow::getItem(QString uri)
> {
> for(int i =0;i<10; i++)
> {
>  QTreeWidgetItem *item;
>
>  item =        // i have to check the items  uri one by one

I really wish people would read the documentation...

QTreeWidgetItem *foo = treeWidget.at(index);

foo->text(Column);

And then do a simple compare.

> }

Srdjan



More information about the Qt-interest-old mailing list