What are roles in qt model and what does setRoleNames() do?
I have to use some kind of c++ qt model in qml. I already have
QStandardItemModel but it does not work in QML because of so called
setRoleNames(). I have been looking for some explanation of roles but I
cannot seem to find. I have found some kind of solution of using
QStandardItemMOdel in qml (here) but it uses "roles", so I do not
understand how it works.
What are roles in qt models?
No comments:
Post a Comment