Posts

Showing posts from March, 2018

Qt And Google Maps

Image
QML & Google Maps  Introduction Google Maps is the  standard for consumer maps.  For Qt developers this presents a dilemma as there are no C++ API's available for Google Maps.  Enter Qt's WebEngineView   which provides a Chromium based embedded web browser window for QML. WebEngineView allows one to seamlessly integrate a Google Map into a QML application.  With Google Maps comes Google's services such for directions and search and info services.  What follows is a description on how to integrate Google Maps into QML.  Motivation If you want to integrate maps into a Qt application there are many native solutions including using Qt's Location module and map plugin system. Available maplugins shipping with Qt are: Mapbox, Open Street Maps, Here, and ESRI.  One could argue that these plugins are superior as they are done in  C++  and all share a common Qt/QML API, and some allow caching of maps.  Qt map plugins also use less computer resources then the Web