I'm updating some old code that is unfortunately heavily dependent on Q3ListView and Q3ListViewItem, its now-obsolete little helper class.
I'm assuming I can now just populate a QListView without the item layer, but in looking through the documentation, I still don't have a very good grip on that. One tutorial I found fills a QStandardItemModel with QStandardItems and then sets that as the model to the QListView, but I also came across a QAbstractListModel class that looks like it might be interesting. A couple of questions have come up:
-Is a QListView basically populated by setting some "model" to it, which itself is populated with items?
-In the old version I have, the Q3ListViewItem is subclassed like this:
class OurListItem : public Q3ListViewItem {
public:
OurListItem(Q3ListView* parent) :Q3ListViewItem(parent) {ourData = NULL;}
OurListItem(Q3ListViewItem* parent) :Q3ListViewItem(parent) {ourData = NULL;}
Data* ourData;
};
Considering the options available now, what is the best way to re-implement this idea?