Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@ListModel{ objectName: "list" ListElement{ name: "first" } ListElement{ name: "second" } } @
How can i get it's elements in c++? I tried to get model by it's name @ QObject list = object->findChild<QObject>("list"); @ But i do not know what to do next.
you can access to all its children : list->children()