I don't really see the problem here... You set the filter to display rows with invalid id, then you insert a row with valid id and expect the model to return rowCount() of 1 regardless of the fact it still contains only rows with invalid id? Try resetting the filter and see if the problem persists.
Bookmarks