December 9, 2011

Sinapse Sinapse
Lab Rat
12 posts

QWebView and google maps

 

Hi people,
i need to show a google map with fixed coordinates in my desktop application.
I tried to read the documentation and follow this topic:

http://labs.qt.nokia.com/2008/07/03/putting-qtwebkit-to-use-with-google-maps/

but the code is missing.
I need to implement the same functionality.

Can you give me other references about this because i tried to search on QtCreator site and i didn’t find nothing useful.

Thanks in advance.

2 replies

December 13, 2011

stevenceuppens stevenceuppe..
Hobby Entomologist
119 posts

Hi!

Here some code like i do it usually! You can easily extend the javascript file.

I wrote this code myself and its based on Google Map API V3!

use this reference regarding the actual map
http://code.google.com/intl/nl-NL/apis/maps/documentation/javascript/

use this reference regarding the geocoding
http://code.google.com/intl/nl-NL/apis/maps/documentation/geocoding/

In setup this implementation below, because it separates all parts of the gmap widget. And make is easy and straight forward to add functionality from the google maps api..

I hope its useful!

Download code here! gmap.zip [docs.google.com]

 Signature 

Steven CEUPPENS
Solutions Manager @ Qt Solution Center - Nalys
Mobile: +32 479 65 93 10
Office: +32 2 880 83 20

www.nalys-group.com

December 13, 2011

Sinapse Sinapse
Lab Rat
12 posts

Hi Steven, really thanks for your answer and your code ;-)

 
  ‹‹ Help required in writing npapi flash plugin      javascript-jit question ››

You must log in to post a reply. Not a member yet? Register here!