This is what I do:
Make a QVector object to store data. Then make a model which keeps a pointer to the vector. I do it this way to make modifying vector easier.
Now I can display the data in a view. But what should I do when the vector has been updated? New item will be added so I don't think dataChanged() would always help.
Thanks in advance.