Hi Guys,
I have a QStandardItemModel. I need to get a Children QVariantList OR QStandardItemModel itself by giving an QModelIndex() of the parent.
For ex: A tree as below,
+Parent1
+ Child10
- Child11
- GrandChild110
- GrandChild111
- GrandChild112
+Parent2
+ Child20
- Child21
- GrandChild210
- GrandChild211
- GrandChild212
+Parent3
+Parent1
+ Child10
- Child11
- GrandChild110
- GrandChild111
- GrandChild112
+Parent2
+ Child20
- Child21
- GrandChild210
- GrandChild211
- GrandChild212
+Parent3
To copy to clipboard, switch view to plain text mode
By giving the QModelIndex() of parent item "Parent1" I need to get a QVariantList or QStandardItemModel of the children Items of the
same. Like.
+ Child10
- Child11
- GrandChild110
- GrandChild111
- GrandChild112
+ Child10
- Child11
- GrandChild110
- GrandChild111
- GrandChild112
To copy to clipboard, switch view to plain text mode
Please let me know how it can be done.
Thanks
Nikhil
Bookmarks