I am writing an application to monitor various information coming back from an array of sensors.
Simply put, I have a class for a sensor (here-after referred to as the 'Sensor Class') and I have a model class that maintains a QList of this Sensor Class.
This QList is created on the fly by the model class - when it gets data from a sensor that is not already in the QList, it creates a new instance of the Sensor Class and adds it to the QList.
I want to now display this list using QListView in my view. I am really only coming to grips with the Model/View stuff in Qt and I am unsure of how to proceed.
Do I need to subclass my model class as an QAbstractListModel and then it can be set as the model for the QListView?
Anyone have any good examples of this or pointers for what way to construct my model?