This is the first time using Qt or pyQt, and I'm trying to make a simple list with columns. From the pyQt examples, in the basicsortfiltermode.py, which shows how to create a list with columns and which is sortable, the data collection it self is created by using a QStandardItemModel, which has insertRow and setData, but the data is made of String and QDateTime in this example.
From reading the Model-View guide as recommended by this question, I quote:
All item models are based on the QAbstractItemModel class. This class defines an interface that is used by views and delegates to access data. The data itself does not have to be stored in the model; it can be held in a data structure or repository provided by a separate class, a file, a database, or some other application component.
How would I proceed to use a python list to store data and make the view read from the list and any update on the list would be propagated in the view?