Hi Asim,
I am not sure if I understand your question. Using the locationChanged slot is
the only way that can be used for setup position to MapWidget. But of course,
nothing prevents you to use different position source than QML PositionSource.
There is c++ counterpart for QML PositionSource. It is called
QGeoPositionInfoSource in c++ api:
https://doc.qt.io/qt-5/qgeopositioninfosource.html
And in NavigationSimulation demo is used PositionSimulator that reads gpx file
and "replay" location changes from it. You can use any other platform specific
sources of position.
Did I reply your question? What is your exact usecase?
Lukas
Dne úterý 18. ledna 2022 4:59:32 CET Asim Maharjan napsal(a):
> Greetings everyone,
> By experimenting with the QT/QML API, I found that the map uses the
> PositionSource component of Qt for getting the positional data.
>
> Is there any other way to provide the position/location data to the Map
> widget so that it can be displayed using showCurrentPosition?
>
> Regards,
> Asim Maharjan |