I simply set the model again in table view using setModel(). Don't know whether this is most efficient but it works...
I simply set the model again in table view using setModel(). Don't know whether this is most efficient but it works...
That's the worst you can do, as all the model-view framework is then reset. It's even worse than if you would call reset() on the model - the result would be the same but without the need to reinstall the model into the view (just the data would be refetched). The proper solution is to emit layoutChanged() or dataChanged() from the model.
Bookmarks