Using TreeWidgets
General and Desktop
10
Posts
3
Posters
3.6k
Views
1
Watching
-
If you think it helps you, you could use a custom data role on your items and generate a unique ID number that you store in that role. You can then retreive that ID from the item when it is clicked. Reference the setData and data methods in QTreeWidgetItem.
-
[quote author="Arukas" date="1328130428"]I just want to get the correct item out of the tree. Is the only way to use a
@map<QTreeWidgetItem, int>@
or does the treewidget do something like that already for you?
[/quote]
I posted a solution for that just above...