[Qt-interest] How to find the GPS coordinates of the point where I mouse click on the Google map (embedded in a qt widget), through "Qt" API?

Dan White ygor at comcast.net
Fri May 13 13:59:58 CEST 2011


I am not up to speed on these classes, but I have worked with other map libraries.  Perhaps I can offer some information.

In basic terms, you need to determine the location of the mouse on the map image, then transform that to a QGeoCoordinate.

QGeoSearchManager does not seem to be appropriate for this task.  It appears to return QGeoBoundingArea which is an area.  If I understand the question, you want a single point.

I hope this helps.

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Anisha Kaul <born.rebel.83 at gmail.com> wrote:
> I looked up this:
> http://doc.qt.nokia.com/qtmobility-1...chmanager.html<http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qgeosearchmanager.html>
> 
> It seems */QGeoSearchManager/* api produces the GPS coordinates of the
> location on the widget (containing the map).
> 
> But it doesn't seem to use the mouse events.
> 
> What are the other options? Please help.
> 
> -Anisha




More information about the Qt-interest-old mailing list