Correct form of feeding data from C++ to fill a GridLayout
Unsolved
QML and Qt Quick
-
Hello.
I have a QML interface that among its components has a GridLayout that I want to dynamically fill with entries from a Custom component that I created in another qml file. That custom component (called an WorklistItem) requires about a dozen fields to be initialized to be used.
The C++ code receives updates with lists of such entities (from a remote server ) that should be displayed with such components in the GridLayout.
What is the best form to signal/ transfer a list of composite data originated in C++ to QML to feed a Gridlayout? I am new in QtQuick and so I might have not understood some terminologies making me miss some example on that, but I could not find any simple such example.