[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
Mon May 16 07:20:38 CEST 2011
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.
http://doc.qt.nokia.com/qtmobility-1.2.0-beta1/qgraphicsgeomap.html
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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110516/2f60941c/attachment.html
More information about the Qt-interest-old
mailing list