How to get the GPS coordinates after clicking on the Google map embedded in the Qt widget?
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 looked up this thread: Google map coordinates info window on click
The solution shown there is in Javascript.
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?
Found these link: Will they be helpful in a way?
http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qml-position.html
http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qml-positio开发者_如何学Cnsource.html
I had put the same question on the QtCentre foras, and the people there gave me a link to the Qt class named "QGraphicsGeoMap". The function there titled "screenPositionToCoordinate" looks promising.
精彩评论