I am facing a same problem as that of fellow user,given is the link for the query similar to mine-
Qt QML C++ QList of structs as custom ListView model
but i want to stick with struct instead of class with QProperty having the members as that of struct and access these struct members in my qml. How can i do this?
QAbstractListModel. It's a bit more work however.QMLcannot access low-level struct types. "classorstructdoesn't really make a difference in C++ other than default access modifier. Can you provide some information on what you want to do with your data? How do you want to use the objects and or their data in QML?