[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?

Anisha Kaul born.rebel.83 at gmail.com
Fri May 13 14:11:06 CEST 2011


Thank you for the info Dan, I'll look into it. Meanwhile, I found these:

They look promising or again I am barking up the wrong tree?

http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qml-position.html

http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qml-positionsource.html

Please guide.

-Anisha



On 13 May 2011 17:29, Dan White <ygor at comcast.net> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110513/af18e2ba/attachment.html 


More information about the Qt-interest-old mailing list