Hello all!

I basically have a source model that organizes the entries in a tree fashion in order to display it in a TreeView. Now I want to display the leaves of that tree source model in a TableView so I made a custom QSortFilterProxyModel that also works with filtering in order to display these entries properly. As far as I understand when I call the InvalidateFilter method it should invoke filterAcceptsRow but in this case it never gets called. Looking for a solution in the internet I found that apparently Qt won't invoke filterAcceptsRow if the parent of the index is not in the model (which I don't want it to be).

Have you guys had a similar issue to this one and have a workaround that might work?

Thanks a lot!