Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Passing a vector to qml
I have a qml app which displays a time-series plot. From the c++ backend, I have a list of marks, which each have a time value and a string label. I would like to draw these marks over the plot (embedded in my qml file) using qml rectangles.
How can I pass this list to qml?
TobbY last edited by
i think this will solve your problem.
Thanks. I am trying this now and will report later
Yes, this works perfectly