AbstractListModel design question
Unsolved
General and Desktop
-
Hello,
Im new to AbstractListModels and I am not quite sure if the approach I think of is "correct".
I have a class which is mainly a composition of 4 other classes. Think of it as a config with categorized sub-configs. The config class itself holds no data other than the sub-configs.
Now, I'd like to display the sub-configs in qml via QAbstractListModel.
I know following approach would work, but is it the "right" one?
This seems like an overcomplicated tree to me. Maybe a QAbstractItemModel would be the correct choice? But the resources on implementing a tree is meager.
Any advice is appreaciated
-
Hi,
Are you looking for something like the editable tree model example ?