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. Qt Location. QML
Forum Updated to NodeBB v4.3 + New Features

Qt Location. QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
13 Posts 6 Posters 8.0k Views 2 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.
  • Frank84F Offline
    Frank84F Offline
    Frank84
    wrote on last edited by
    #3

    Is necessary to use any real external device?, is not possible to simulate data?, or gps connection that works with QT?

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

      IIRC there's the simulator plugin

      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
      1
      • Frank84F Offline
        Frank84F Offline
        Frank84
        wrote on last edited by
        #5

        Can you tell me a little more please?. where can i get this?

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

          Sorry, my bad, Qt Simulator doesn't apply in your case. It's a bit old and was for the Nokia time.

          Maybe the gypsy plugin could be an alternative.

          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
          1
          • Frank84F Frank84

            Is necessary to use any real external device?, is not possible to simulate data?, or gps connection that works with QT?

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by raven-worx
            #7

            @Frank84 said:

            Is necessary to use any real external device?, is not possible to simulate data?, or gps connection that works with QT?

            You can use NMEA files todo so. In QML you can use PositionSource's nmeaSource property
            There a tools available to generate such .nmea files.

            I haven't used it yet though. So i can't tell if it works out of the box.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            2
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #8

              There was a thread about simulated GPS data with QtQuick some time ago: http://forum.qt.io/topic/66845.

              raven-worxR 1 Reply Last reply
              2
              • ? A Former User

                There was a thread about simulated GPS data with QtQuick some time ago: http://forum.qt.io/topic/66845.

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #9

                @Wieland
                ah didn't know about the log file position source example yet.
                Thats even simpler than messing around with the .nmea files.

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                2
                • Frank84F Offline
                  Frank84F Offline
                  Frank84
                  wrote on last edited by
                  #10

                  I get this error:
                  "Failed to create Geoclue client interface. Geoclue error: org.freedesktop.DBus.Error.Disconnected"

                  Do i need another plugin? which one?, i'm using windows.. ..Thank you again

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

                    You would need DBus running on Windows.

                    I'd recommend following @Wieland and @raven-worx suggestions for simulating GPS data.

                    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
                    • L Offline
                      L Offline
                      ldanzinger
                      wrote on last edited by
                      #12

                      You should be able to directly plug in an nmea file to the source, and it'll work. If you don't have one, you can use this - https://github.com/Esri/arcgis-runtime-samples-data/blob/master/gps/campus.txt

                      Also, ArcGIS Runtime SDK provides a position plugin for Windows, so you can get your current position on Windows, with no need for simulation - https://developers.arcgis.com/qt/qml/guide/show-device-location.htm

                      1 Reply Last reply
                      0
                      • Frank84F Frank84

                        I have been trying to play with Qt Location, but i couln't make it work.

                        I get this:: "serialnmea: No known GPS device found. Specify the COM port via QT_NMEA_SERIAL_PORT.
                        qml:
                        Failed to create Geoclue client interface. Geoclue error: org.freedesktop.DBus.Error.Disconnected"

                        I have tried to run several devices as external gps for the pc, but no success. ¿ Any workaround? Help would be appreciated.

                        I have tried the MAP viewer(QML) example and also this basic block code to test it.

                        import QtQuick 2.7
                        import QtQuick.Window 2.2
                        import QtPositioning 5.6
                        import QtLocation 5.6
                        
                        Item{
                            PositionSource{
                                active: true
                                onPositionChanged: {
                                    console.log(position.coordinate);
                        
                                }
                            }
                        
                        }
                        
                        M Offline
                        M Offline
                        Mahmoud_batman
                        wrote on last edited by
                        #13

                        @Frank84
                        try to identify your gps socket
                        PositionSource {
                        nmeaSource: "socket://127.0.0.1:12345"
                        }

                        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