QML Map element and MapPolyLine data coming from C++
Hi
I am in the process of becoming frustrated with QML.
I have a QML Map element, and i'm trying to ploth a track in it.
I understand that i have to create a MapPolyLine and add it to the map.
The problem is: i have all the coordinate data in a C++ object, and i would really really really really like to avoid having to send it one by one to QML, and rebuild a MapPolyLine in qml every time.
So the question is: is there a way i can create the qml mappolyline object in C++ and send it to qml? (i guess QML MapPolyLine is a wrapper for QGeoMapPolylineObject anyway)
Alternately is there an alternate QML wrapper for QGraphicsGeoMap that can be created in C++ and passed to qml via customcomponents?
Third approach would be finding the headers for the qtmobility qml bindings, istantiate the qml map object in c++ and pass it to qml somehow?. I stumbled upon these headers some time ago (it was a gitorius or github repo, iirc) but i lost the link..
Any idea?