PDA

View Full Version : Display OSM or Google Maps Qt 5.5



carobnodrvo
15th September 2016, 17:35
Hey,

I'm trying to achieve following thing - given latitude and longitude display map (OSM or Google map) with a pointer (pin, circle...) on given longitude and latitude.

I've googled a lot and I found a lot of stuff where people used custom HTML/JS and load it in QWebView.
So before I go on with this (dirty dirty) approach :( I want to try my luck here - does anyone know some "cleaner" approach to this problem?

Cheers!

d_stranz
15th September 2016, 18:19
Funny the things simple Google queries like "Display map in Qt" (http://doc.qt.io/qt-5/location-plugin-osm.html) will tell you.

carobnodrvo
15th September 2016, 18:54
Oh sorry, I forgot to mention that I would need it to be C++ "oriented". So no QML...

d_stranz
15th September 2016, 22:45
Try Marble (https://techbase.kde.org/Marble/MarbleCPlusPlus). Or this. (http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html)