Re: How to update model when data are stored and modified outside the model?
Originally Posted by wysota
In general you should call beginInsertRows() and endInsertRows(). But I would suggest to avoid a situation when the vector can be modified outside of the model. Instead add any methods you might need to the model class that will operate on the vector. In those methods make sure you emit signals the model expects to be emitted.
Thanks!
I used to consider a model as an interface instead of a wrapper. Now it seems storing data in the model or not won't matter because you can only read/write the data with the model anyway.
Bookmarks