How to create a generic object model for use in QML?
//Is this possible in any way? //Q_PROPERTY(AnimalModel modelAnimals READ modelAnimals NOTIFY modelAnimalsChanged) Yes it is, didn’t you try? Of course, it will not be a AnimalModel but a AnimalModel *, but as long as the model inherits QAbstractListModel, that’s all you need. You don’t even need the NOTIFY part, as changes, internal to the model … Read more