how to get QModelndex for all children in QtreeView
Unsolved
General and Desktop
-
Hi
I have a QtreeView as given in the example,
https://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-treemodel-cpp.htmlI have QModelIndex of one of parent node ,
QModelIndex parent;
int rowIndex = parent.index().row()
I want to the indices of its children and I have QModelIndex as parent -
Hi,
You can use QModelIndex::sibling for that.