Not sure, but did you try QTreeWidgetItem::indexOfChild() on the parent item, or if it's a top-level item, you should be able to ask invisible root item.
Not sure, but did you try QTreeWidgetItem::indexOfChild() on the parent item, or if it's a top-level item, you should be able to ask invisible root item.
Bookmarks