Qt Code:
QTreeWidgetItem *nextSibling; if(parent){ nextSibling =parent()->child(parent->indexOfChild(current)+1); else { nextSibling = treeWidget->topLevelItem(treeWidget->indexOfTopLevelItem(current)+1); }To copy to clipboard, switch view to plain text mode
Wasn't that hard, was it? Please at least look at available methods for all the related classes before asking such questions...
Bookmarks