How to install QtLocation on Windows?
I'm trying to write a simple app with a map to mark several locations.....was directed to the Qt Location Open Street Map Plugin which I intend to use.
I ran through a problem when I tried to follow the instruction on this page:
All I did is I created a Other Project > Qt Quick UI and I add the following import statements:
import QtPositioning 5.5
import QtLocation 5.6
the app won't run and I got the message:
module "QtLocation" version 5.6 is not installed
All I can find is how to install on Linux but not Windows.
Will I also need to install QtPositioning? Where can I also find the Qt Location Open Street Map Plugin and how to install it?
I never did any of these steps before so would appreciate your patience :)
Did you re-run qmake after adding
QT += locationto your .pro file ?
I created a QML project because that was the directions in the website(Other Project > Qt Quick UI). There is no .pro file. I'd rather if it can be done in c++ so I don't have to learn QML.
I don't know how to add other modules in that kind of project.
For your case I'd rather go with Qt Quick Application.
From this documentation page, in order to interact with maps there's currently only QML.
@WhatIf If you would rather not use QML, are you saying you would rather use Qt Widgets? If so, ArcGIS Runtime SDK supports this. For example - https://github.com/Esri/arcgis-runtime-samples-qt/blob/master/ArcGISRuntimeSDKQt_CppSamples_Widgets/Maps/DisplayMap/DisplayMap.cpp
There is also support for QML if you prefer that, but it sounds like you are trying to stick to C++ only. The ArcGIS SDK runs on Windows no problem. Here is the installation guide - https://developers.arcgis.com/qt/qml/guide/install-and-set-up-on-windows.htm