Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt example application for GPS

Qt example application for GPS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 1.2k 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.
  • T Offline
    T Offline
    tech.hi
    wrote on last edited by
    #1

    Hi,
    I am using debian 10, Qt creator 4.8.2 based on qt 5.11.3 on a custom board.
    I need a basic Qt test application for GPS.
    Any idea??

    jsulmJ 1 Reply Last reply
    0
    • T tech.hi

      Hi,
      I am using debian 10, Qt creator 4.8.2 based on qt 5.11.3 on a custom board.
      I need a basic Qt test application for GPS.
      Any idea??

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @tech-hi See examples mentioned here: https://doc.qt.io/qt-5/qtpositioning-index.html
      Also, if you want to let others know which Qt version you're using then don't mention Qt version which was used to build QtCreator - it is usually not the same version you're using.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      3
      • jsulmJ jsulm

        @tech-hi See examples mentioned here: https://doc.qt.io/qt-5/qtpositioning-index.html
        Also, if you want to let others know which Qt version you're using then don't mention Qt version which was used to build QtCreator - it is usually not the same version you're using.

        T Offline
        T Offline
        tech.hi
        wrote on last edited by
        #3

        @jsulm
        I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples :/

        J.HilkJ 1 Reply Last reply
        0
        • T tech.hi

          @jsulm
          I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples :/

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @tech-hi

          I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples

          that's not true

          from the GeoFlicker example

          5ce30422-3807-426f-a335-1b9e368b6ae1-image.png


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          T 2 Replies Last reply
          3
          • J.HilkJ J.Hilk

            @tech-hi

            I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples

            that's not true

            from the GeoFlicker example

            5ce30422-3807-426f-a335-1b9e368b6ae1-image.png

            T Offline
            T Offline
            tech.hi
            wrote on last edited by
            #5

            @J-Hilk
            Sorry I am new to programming and i dont have much idea to make use of that piece of code.
            Can you be more clear, and help me to get the position.
            Thank you

            1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @tech-hi

              I need a simple application that shows the current location in lattitude and longitude. I couldnt find any from those examples

              that's not true

              from the GeoFlicker example

              5ce30422-3807-426f-a335-1b9e368b6ae1-image.png

              T Offline
              T Offline
              tech.hi
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • T Offline
                T Offline
                tech.hi
                wrote on last edited by tech.hi
                #7

                #include <iostream>
                #include <QGeoCoordinate>
                using namespace std;

                int main()
                {
                QGeoCoordinate qGeoCoord;
                cout
                << "Lat.: " << qGeoCoord.latitude() << endl
                << "Long.: " << qGeoCoord.longitude() << endl
                << "Alt.: " << qGeoCoord.altitude() << endl;
                return 0;
                }

                This is a simple code which i wrote, but the output is just "-nan"
                What more should i add to the code?

                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