Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Error QtPositioning and QtLocation import
Forum Update on Monday, May 27th 2025

Error QtPositioning and QtLocation import

Scheduled Pinned Locked Moved Solved QML and Qt Quick
9 Posts 4 Posters 1.8k Views
  • 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.
  • V Offline
    V Offline
    vin212
    wrote on last edited by
    #1

    hello,
    I have this error when i compil my code : : -1: erreur : Project ERROR: Unknown module(s) in QT: location

    In the .pro, i have :

    QT += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets qml quickwidgets location
    
    CONFIG += c++11
    

    And, i have this message : QML module not found (QTPositioning) and QML module not found (QTLocation)

    my version :
    Qt creato 4.15.2
    base : Qt 5.15

    i search on google but, i don't have the solution...

    thank's for you help.

    KroMignonK 1 Reply Last reply
    0
    • V vin212

      hello,
      I have this error when i compil my code : : -1: erreur : Project ERROR: Unknown module(s) in QT: location

      In the .pro, i have :

      QT += core gui
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets qml quickwidgets location
      
      CONFIG += c++11
      

      And, i have this message : QML module not found (QTPositioning) and QML module not found (QTLocation)

      my version :
      Qt creato 4.15.2
      base : Qt 5.15

      i search on google but, i don't have the solution...

      thank's for you help.

      KroMignonK Offline
      KroMignonK Offline
      KroMignon
      wrote on last edited by KroMignon
      #2

      @vin212 said in Error QtPositioning and QtLocation import:

      my version :
      Qt creato 4.15.2
      base : Qt 5.15

      This is the Qt Creator version, is not relevant here. Qt Creator is "just" an IDE. What you have to specify is:

      • which OS you are using
      • which QT Kit you are using

      It seems that the Qt Kit you are using do not have been build with QtLocation support.

      -1: erreur : Project ERROR: Unknown module(s) in QT: location

      Did you build yourself the Qt Kit or do you use an official Qt Kit?
      => AFAIK, QtLocation is available since Qt 5.5.

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vin212
        wrote on last edited by vin212
        #3

        I'm on Windows 10, i use the last qt version (i don't know the version and how i can verify)

        For the install, i use the default option "Design Tools" + "QT 6.1 for desktop development" + "Qt 6.1 for mobile development"

        KroMignonK 1 Reply Last reply
        0
        • V vin212

          I'm on Windows 10, i use the last qt version (i don't know the version and how i can verify)

          For the install, i use the default option "Design Tools" + "QT 6.1 for desktop development" + "Qt 6.1 for mobile development"

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by KroMignon
          #4

          @vin212 said in Error QtPositioning and QtLocation import:

          For the install, i use the default option "Design Tools" + "QT 6.1 for desktop development" + "Qt 6.1 for mobile development"

          Qt 6.x is a "work in progress", many Qt 5 modules are not all supported or have moved/merged to/with other modules.
          Qt Location is one of the modules which don't have any planned porting date.

          I don't know if it will be ever available in Qt 6.

          cf https://doc-snapshots.qt.io/qt6-dev/whatsnew60.html

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          V M 2 Replies Last reply
          2
          • KroMignonK KroMignon

            @vin212 said in Error QtPositioning and QtLocation import:

            For the install, i use the default option "Design Tools" + "QT 6.1 for desktop development" + "Qt 6.1 for mobile development"

            Qt 6.x is a "work in progress", many Qt 5 modules are not all supported or have moved/merged to/with other modules.
            Qt Location is one of the modules which don't have any planned porting date.

            I don't know if it will be ever available in Qt 6.

            cf https://doc-snapshots.qt.io/qt6-dev/whatsnew60.html

            V Offline
            V Offline
            vin212
            wrote on last edited by
            #5

            @KroMignon Thank you for your answer, i use an QT last version and it's work !

            1 Reply Last reply
            0
            • KroMignonK KroMignon

              @vin212 said in Error QtPositioning and QtLocation import:

              For the install, i use the default option "Design Tools" + "QT 6.1 for desktop development" + "Qt 6.1 for mobile development"

              Qt 6.x is a "work in progress", many Qt 5 modules are not all supported or have moved/merged to/with other modules.
              Qt Location is one of the modules which don't have any planned porting date.

              I don't know if it will be ever available in Qt 6.

              cf https://doc-snapshots.qt.io/qt6-dev/whatsnew60.html

              M Offline
              M Offline
              mbnoimi
              wrote on last edited by mbnoimi
              #6

              @KroMignon said in Error QtPositioning and QtLocation import:

              Qt 6.x is a "work in progress", many Qt 5 modules are not all supported or have moved/merged to/with other modules.
              Qt Location is one of the modules which don't have any planned porting date.
              I don't know if it will be ever available in Qt 6.

              This is a bad news.

              I left Qt since a while but today I tried to move back but the first thing I struggled with is building my old Android app using Qt 6 which uses Qt Positioning!
              May you please ask on behalf of one the community what if QtPositioning & QtLocation will be supported in Qt 6 or not?
              It's vital for me to know the future of Qt 6 because Qt 5 LTS will end on 2021-12-05 so I've to make the decision to keep with Qt or leave it once again.

              KroMignonK M 2 Replies Last reply
              0
              • M mbnoimi

                @KroMignon said in Error QtPositioning and QtLocation import:

                Qt 6.x is a "work in progress", many Qt 5 modules are not all supported or have moved/merged to/with other modules.
                Qt Location is one of the modules which don't have any planned porting date.
                I don't know if it will be ever available in Qt 6.

                This is a bad news.

                I left Qt since a while but today I tried to move back but the first thing I struggled with is building my old Android app using Qt 6 which uses Qt Positioning!
                May you please ask on behalf of one the community what if QtPositioning & QtLocation will be supported in Qt 6 or not?
                It's vital for me to know the future of Qt 6 because Qt 5 LTS will end on 2021-12-05 so I've to make the decision to keep with Qt or leave it once again.

                KroMignonK Offline
                KroMignonK Offline
                KroMignon
                wrote on last edited by
                #7

                @mbnoimi said in Error QtPositioning and QtLocation import:

                It's vital for me to know the future of Qt 6 because Qt 5 LTS will end on 2021-12-05 so I've to make the decision to keep with Qt or leave it once again.

                Take a look at this Qt blog entry: https://www.qt.io/blog/qt-6.2-vs.-qt-5.15-the-feature-parity-comparison

                It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                1 Reply Last reply
                1
                • M mbnoimi

                  @KroMignon said in Error QtPositioning and QtLocation import:

                  Qt 6.x is a "work in progress", many Qt 5 modules are not all supported or have moved/merged to/with other modules.
                  Qt Location is one of the modules which don't have any planned porting date.
                  I don't know if it will be ever available in Qt 6.

                  This is a bad news.

                  I left Qt since a while but today I tried to move back but the first thing I struggled with is building my old Android app using Qt 6 which uses Qt Positioning!
                  May you please ask on behalf of one the community what if QtPositioning & QtLocation will be supported in Qt 6 or not?
                  It's vital for me to know the future of Qt 6 because Qt 5 LTS will end on 2021-12-05 so I've to make the decision to keep with Qt or leave it once again.

                  M Offline
                  M Offline
                  mbnoimi
                  wrote on last edited by mbnoimi
                  #8

                  @SGaist @sierdzio @JKSH
                  May you please help me/us in this matter?

                  JKSHJ 1 Reply Last reply
                  0
                  • M mbnoimi

                    @SGaist @sierdzio @JKSH
                    May you please help me/us in this matter?

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    @mbnoimi said in Error QtPositioning and QtLocation import:

                    @SGaist @sierdzio @JKSH
                    May you please help me/us in this matter?

                    @KroMignon already gave you the answer.

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    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