QSortFilterProxyModel how to emit a custom signal when filterAcceptsRow is finished?
-
Hi,
I have a proxy model(treeview with parent/children) where I have implemented some custom filtering in filterAcceptsRow. Is there any way to manage the filtering to emit a signal once the recursion has finished?Would I have to find the very last item on the source model and test if its passed in the filterAcceptsRow to trigger a signal or something?
Thanks
-
Hi,
Can you explain what the goal of this signal ?
-
I'd like to modify the remaining parents of the leafs after the filtering.
ex.expand the parent to show all leafs, along with changing the Decoration.Role and changing some custom UserRolesIt looks like the proxy model only emits layoutChanged() once sorting is finished but not filtering.
-
But it will emit begin/endRemoveRows for instance.
-
Sorry, I meant rowsInserted()/rowsRemoved()