[Qt-interest] QTreeWidgetItem test if findItems exists
Andrei Sebastian Cimpean
andreiamenta at gmail.com
Tue Sep 15 16:57:10 CEST 2009
Thank you for the help, it was exactly what i was missing!
Andrei
> On Sun, 13 Sep 2009 12:07:40 +0300, Andrei Sebastian Cimpean wrote:
> > QList<QTreeWidgetItem* >items =
> > m_ui->treeWidget->findItems(oPRepl.at(j), Qt::MatchRecursive |
> > Qt::MatchExactly,0);
> > [...]
> > how to check if an item with that name exists or is null ?
>
> If items->count() is 0, there were no items in the QTreeView that matched
> your query string (exactly).
>
> Cheers, René
>
More information about the Qt-interest-old
mailing list