First of all you shouldn't cast the source model to QStandardItemModel...
I think you'll need to compute the visibility of child items when deciding if a particular item is to be shown or not. You can cache the result somewhere (most probably using QModelIndex::internalPointer()), so that you can reuse it when making decisions about children.





Reply With Quote
Bookmarks