如何在我的Qt应用程序中添加Google地图?

Nau*_*fal 15 qt google-maps

我正在开发一个应用程序,我需要将Google地图添加到我们的应用程序中.我正在使用Qt与UI设计,我不使用QML.是否有任何用于Symbian的Qt API或任何要添加到我的应用程序端口的文件?

Aqu*_*irl 9

-Qt API for Google Maps-
来自:https://www.ics.com/technologies/qt/qt-based-clients-google-apis


Lwi*_* Ko 3

    QWebView *webView = new QWebView(parentWidget);
    webView->resize(1000,500);
    webView->move(10,10);
    QString gMapURL = "England"; // this is where you want to point
    gMapURL = "http://maps.google.com.sg/maps?q="+gMapURL+"&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&um=1&ie=UTF-8&hl=en&sa=N&tab=wl";
    webView->setUrl(QUrl(gMapURL));
Run Code Online (Sandbox Code Playgroud)

这是一种在 Qt 中获取谷歌地图的廉价方法。也许,有一些更聪明的方法可以使用 Google 地图 API Web 服务来获取它。 http://code.google.com/apis/maps/documentation/webservices/index.html