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,

Qt Code:
  1. +Parent1
  2. + Child10
  3. - Child11
  4. - GrandChild110
  5. - GrandChild111
  6. - GrandChild112
  7. +Parent2
  8. + Child20
  9. - Child21
  10. - GrandChild210
  11. - GrandChild211
  12. - GrandChild212
  13. +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.

Qt Code:
  1. + Child10
  2. - Child11
  3. - GrandChild110
  4. - GrandChild111
  5. - GrandChild112
To copy to clipboard, switch view to plain text mode 

Please let me know how it can be done.

Thanks
Nikhil