

On my personal GitHub, I decided to continue using QT4 and the interaction with Google Maps is running pretty ok. On GitHub I also found a project that uses the code, but made a QT5-version of it and it has been active until one year ago, so probably you have more chances to find working code there. I see that the "new" code now incorporates version 3 as well.

I remember that I had to change a little bit because the code was based on version 2 of the Google Maps API, and now only version 3 was supported. How to clone from git and how to compile the code.You can still find it at the Google Code Archive: My project is based on the code of qt-google-maps. Using QWebView might probably work, but I have no idea if then interaction can take place between Google Maps and your own code. You will then have a fully functional map. Promote this widget to your custom QWebView class. Next step is to add a QWebView widget in your Designer. You will need to create a class that inherits QWebView and set this class' main page to new instance of the class myWebPage. Virtual QString userAgentForUrl(const QUrl& url) const To get rid of this problem you will need to create a class that inherits QWebPage that fakes user agent, for example: class myWebPage : virtual public QWebPage When you load the map into your QWebView widget you will not be able to interact with it at all. This practice lets you define javascript functions inside HTML file that can control the map (markers, etc) which you can then easily call in your Qt code.

Basically, it's best to load an external HTML file into QWebView which contains javascript code necessary to load the map. I've been working on my university project in Qt using Google Maps as the main widget.
