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. PositionSource onPositionChanged SIGNAL slow
Forum Updated to NodeBB v4.3 + New Features

PositionSource onPositionChanged SIGNAL slow

Scheduled Pinned Locked Moved Solved Mobile and Embedded
locationpositionsourcegpscoordinate
7 Posts 2 Posters 2.7k 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.
  • E Offline
    E Offline
    ekkescorner
    Qt Champions 2016
    wrote on 13 Nov 2016, 14:29 last edited by
    #1

    just did some first work with PositionSource on Android / iOS
    it works - I'm getting the correct location

    for this App I only need single update

    starting the App, the PositionSource immediately gets a PositionUpdate (seems to be the last one cached by the OS)
    this is fine, so I can display the coordinates together with position timestamp and user can decide to use this one or to refresh the coordinates

    starting a new update() is very slow
    it took around 2 minutes before getting the positionChanged SIGNAL,
    but the reported timestamp is only 2 secs after doing the update()
    per ex
    15:13:08 doing update() on PositionSource
    15:15:08 getting positionChanged SIGNAL: Coordinates together with Timestamp 15:13:10

    tried to set updateInterval to 5000, but this interval only should be needed if using start() and continuous reading updates

    supported and preffered methods are Satellite and Non-Satellite

    any ideas ?

    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
    5.15 --> 6.8 https://t1p.de/ekkeChecklist
    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ekkescorner
      Qt Champions 2016
      wrote on 13 Nov 2016, 14:37 last edited by
      #2

      just found a workaround:

      setting updateInterval to 5000

      doing start() instead of update()

      and first time getting a positionUpdate() doing stop()

      should I report a bug or did I something wrong with update() before ?

      ekke ... Qt Champion 2016 | 2024 ... mobile business apps
      5.15 --> 6.8 https://t1p.de/ekkeChecklist
      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

      1 Reply Last reply
      1
      • S Offline
        S Offline
        Schluchti
        wrote on 13 Nov 2016, 19:06 last edited by
        #3

        Experienced the same behavior a few weeks ago. I did the same as you, I am also using start and stop instead of update. Don't know why, but as you already said, it performs way faster than update.

        Want to read more about Qt?

        https://gympulsr.com/blog/qt/

        Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

        E 1 Reply Last reply 13 Nov 2016, 21:48
        1
        • S Schluchti
          13 Nov 2016, 19:06

          Experienced the same behavior a few weeks ago. I did the same as you, I am also using start and stop instead of update. Don't know why, but as you already said, it performs way faster than update.

          E Offline
          E Offline
          ekkescorner
          Qt Champions 2016
          wrote on 13 Nov 2016, 21:48 last edited by
          #4

          @Schluchti thx confirming this. will open a bug report

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Schluchti
            wrote on 13 Nov 2016, 22:22 last edited by
            #5

            @ekkescorner Thanks! Could you maybe post the ticket number here afterwards? Would like to subscribe to the ticket, in order to stay up to date :)

            Want to read more about Qt?

            https://gympulsr.com/blog/qt/

            Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

            E 1 Reply Last reply 13 Nov 2016, 22:43
            0
            • S Schluchti
              13 Nov 2016, 22:22

              @ekkescorner Thanks! Could you maybe post the ticket number here afterwards? Would like to subscribe to the ticket, in order to stay up to date :)

              E Offline
              E Offline
              ekkescorner
              Qt Champions 2016
              wrote on 13 Nov 2016, 22:43 last edited by
              #6

              @Schluchti here's the bugreport https://bugreports.qt.io/browse/QTBUG-57104

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.8 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              1 Reply Last reply
              1
              • S Offline
                S Offline
                Schluchti
                wrote on 13 Nov 2016, 22:53 last edited by
                #7

                Thanks a lot :)

                Want to read more about Qt?

                https://gympulsr.com/blog/qt/

                Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

                1 Reply Last reply
                0

                3/7

                13 Nov 2016, 19:06

                • Login

                • Login or register to search.
                3 out of 7
                • First post
                  3/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved