Hi
I'm working on a QAbstractItemModel, that should be able to add new rows, when the underlying data source sends corresponding signals. The problem is that the data source send post factual signals only, i.e. I have no way to find out when begin[Insert|Remove]Rows(...) should be called.
What should I do in this kind of situation in order to preserve valid data structure on the model side?
Edit:
Pretty stupid question - nevermind.
What I should is to create a wrapper for my data source, and store it on the model side. This will allow me to callbeginInsertRows when needed.
Thanks
Anton
Bookmarks