Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to install QtLocation on Windows?
Qt 6.11 is out! See what's new in the release blog

How to install QtLocation on Windows?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WhatIf
    wrote on last edited by WhatIf
    #1

    Hi,

    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:

    http://doc.qt.io/qt-5/qtlocation-index.html

    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 :)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you re-run qmake after adding QT += location to your .pro file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • W Offline
        W Offline
        WhatIf
        wrote on last edited by WhatIf
        #3

        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.

        L 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • W WhatIf

            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.

            L Offline
            L Offline
            ldanzinger
            wrote on last edited by
            #5

            @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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved