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. [solved] QGeoCoordinate: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

[solved] QGeoCoordinate: No such file or directory

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.5k 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.
  • Q Offline
    Q Offline
    QHamed
    wrote on last edited by
    #1

    hi.
    I'm trying to use QtLocation but I can't! I don't realise why! I'm using qt5.3.2 with ubuntu 14.04.
    it's strange because I added this lines to my .pro file :
    @QT += network
    CONFIG += mobility
    MOBILITY += location@

    and it's qmake successfuly. nad I checked my qt5 libraries and I can find this library but still I can't use it!!!

    it's not recognize my includes and print errors like this :
    @QGeoCoordinate: No such file or directory@
    and int's not the only include that it's not recognize. generally it's not recognize QGeo types!!!
    I can't find this problem anywhere I hope someone can help me here.
    thanks in advices.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      Qt Mobility is for Qt 4 only.

      To use Qt Location in Qt 5, you need to wait for "Qt 5.5.":http://blog.qt.io/blog/2015/02/05/licensing-of-new-modules-in-qt-5-5/

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

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Please read the documentation: "link":http://doc.qt.io/qt-5/qgeocoordinate.html.

        You need this:
        @
        QT += positioning
        @

        (Z(:^

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          QHamed
          wrote on last edited by
          #4

          thank you dear sierdzio. :)
          I don't know how do I missed that!

          sorry I'm new here. how can I accept an answer here?

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            [quote author="sierdzio" date="1424250726"]Please read the documentation: "link":http://doc.qt.io/qt-5/qgeocoordinate.html.

            You need this:
            @
            QT += positioning
            @
            [/quote]Oops! Forgot that QGeo* has been moved to Qt Positioning.

            [quote author="QHamed" date="1424251053"]sorry I'm new here. how can I accept an answer here?[/quote]Edit your original post and add "[SOLVED]" to the title.

            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