Greetings.

I have a custom AbstractTableModel, which receives data really fast. I buffer them and emit a beginInsertRows/endInsertRows for a few items at a time.
In my custom view, in rowsInserted, i continually update a label which shows the rowCount.
Until now, i used a basic QSortFilterProxyModel, no problems.
Recently though, i had to switch to a custom one, derived from QSortFilterProxyModel. I basically followed the Custom Sort/Filter Model example.
I have the following problem:
I set the dynamic sort/filter flag on and set a custom filter. The items keep arriving, and not only the number representing the number of items does not refresh correctly, in the view the number of rows seems to grow, then shrink, grow again, etc.
Note: those did not happen when i used a simple QSortFilterProxyModel.
If all the data is fully loaded, no more row inserts happen, the filtering works fast and correctly.

What could be the problem?

Thank you.