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
Forum Update on Monday, May 27th 2025

Qt example application for GPS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 901 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 10 Sept 2019, 06:39 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??

    J 1 Reply Last reply 10 Sept 2019, 06:51
    0
    • T tech.hi
      10 Sept 2019, 06:39

      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??

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 10 Sept 2019, 06:51 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 15 Oct 2019, 09:17
      3
      • J jsulm
        10 Sept 2019, 06:51

        @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 15 Oct 2019, 09:17 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 1 Reply Last reply 15 Oct 2019, 09:30
        0
        • T tech.hi
          15 Oct 2019, 09:17

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

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 15 Oct 2019, 09:30 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 7 Nov 2019, 09:34
          3
          • J J.Hilk
            15 Oct 2019, 09:30

            @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 7 Nov 2019, 09:34 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 J.Hilk
              15 Oct 2019, 09:30

              @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 7 Nov 2019, 09:53 last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • T Offline
                T Offline
                tech.hi
                wrote on 7 Nov 2019, 09:58 last edited by tech.hi 11 Jul 2019, 09:59
                #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