Access QML MapType in c++
Solved
General and Desktop
-
-
Also, How do I access the activeMapType for a qml map. I have accessed the map from c++ in the following way.
QQuickItem *item = widget->rootObject()->findChild<QQuickItem*>("map_main");
and I am trying to set the property of the map like this
item->setProperty("activeMapType",maptype.name) ;
Is it the right way because I am not able to access the current active maptype also via
x= item->property("activeMapType.name").toString();