PDA

View Full Version : Fetch GPS coordinates after clicking on the Google map embedded in the Qt widget



TheIndependentAquarius
13th May 2011, 11:15
I have already found the ways to embed the Google maps in the Qt widgets.
Now the next task is to get the GPS coordinates when I click on the map image in the Qt widget.

I am working in Qt. So, I looked up this: http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qgeosearchmanager.html

Does QGeoSearchManager api produce the GPS coordinates of the location where the mouse clicked on the widget (containing the map)? I couldn't find, how?

wysota
14th May 2011, 08:58
No. What you are after is QGraphicsGeoMap class and its screenPositionToCoordinate() method.

TheIndependentAquarius
14th May 2011, 13:19
Very thankful to you, I Googled that up, seems promising, I'll read more on that and write further here in something interesting happens. :hattip: