I have unique QTreeWidgetItems in QTreeWidget, I am using findItems() to find a specific item, it returns list of items. From this list taking the first item and storing in QTreeWidgetItem. but i wonder is there any method to find an item which returns only one item, if found ?
Asked
Active
Viewed 1,138 times
0
-
Why do you want that? finditems() gives you what you need. – TonyK Feb 24 '13 at 13:22
-
instead of storing in a list and taking the first item, i want directly store it to a QTreeWidgetItem and use it – Prady Feb 24 '13 at 14:23
-
1Umm, OK: `QTreeWidgetItem it = *myQTreeWidget -> finditems().at(0);` – TonyK Feb 24 '13 at 17:40