From 10:00 CET Friday 22nd November we will adjust how the server works to deal with some recently reported problems. Therefore there may be a load problem, if you experience more problems than usual trying to access the forum then please PM AndyS or any of the moderators so they can inform me.
passing coordinate value from c++ source file to qml file
hem1 last edited by
i am trying to update the coordinate values used in qml file for showing location on the map through c++ source file.
My c++ source file
QQuickView *view = new QQuickView();
Qobject *item =view->rootObject();
where lat and lon are the values which i want to pass to Qml file
i have declared two properties named longitude and latitude for getting values from c++ file
the map center is able to access these lat long values if they are chnaged from source file but marker is not updated according to the chnaged values, is there any better way to pass variables from Qt c++ to Qt Qml?
Use a separate QObject-derived class and set it as context property.