As the title says, is there a way to get the amount of QTreeWidgetItems in a QTreeWidget?
Is there also a way to get a specified item by its location in the QTreeWidget? For example:
Qt Code:
int index = tree->addTopLevelItem(item); if(item == itemAtIndex) cout << "works!"; int amount = tree->getItemCount(); for(int i = 0; i < amount; i++) cout << tree->getItemAtIndex(i).text(0).toStdString();To copy to clipboard, switch view to plain text mode
Bookmarks