Unsolved Passing a QVector from Cpp to qml
-
I have a QVector<QPointF> variable in c++ class. I want to access and iterate this variable in canvas that i have in my qml file. Please give an example of how i can achieve this.
-
Hi @Luckless ,
From where do you get the values for QPointF ?
you cannot directly pass QPoint, send it in the list .refer the below for QMl types which supports.
https://doc.qt.io/qt-5/qtqml-cppintegration-data.html#sequence-type-to-javascript-arrayThanks,