[Qt-interest] QTreeWidgetItem test if findItems exists

R. Reucher rene.reucher at batcom-it.net
Mon Sep 14 09:06:33 CEST 2009


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é
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

Committees have become so important nowadays that subcommittees have to
be appointed to do the work.



More information about the Qt-interest-old mailing list