I have tableview with a custom model along with a tree that has a proxy model.
the proxyModel source model is set to the custom tableview's model.
The table and tree both display data correctly upon creation.
The problem is when I add or remove rows.
The table gets updated correctly but the tree does not.
Is there a reason why the proxy model does not get notified when rows are being inserted/removed?


Reply With Quote


I was passing in the start and end rows that got returned from the rowsInserted signal as the inserPosition and numberOfRows paramaters for insertRows() which confused the view.

Bookmarks