Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97705

PositionSource doesn't stay active nor start on initial property values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.3, 6.3.0 Alpha
    • 6.2.0
    • Positioning
    • None
    • All
    • 3
    • 290310add82e047757c0ef8f53821d8328b2d321 (qt/qtpositioning/dev) a7a67508cb2a6ccec1f4334cecf2d29c69ffa539 (qt/qtpositioning/6.2)
    • Team 1 Foundation_Sprint 46

    Description

      When defining PositionSource like this:

      PositionSource{
          updateInterval: 1000
          active: true
          onPositionChanged:{
              console.log("You will never see me!"); 
          }
      }

      It is deactivated during initial loading.

      That's because QDeclarativePositionSource::setActive is called quite in the beginning and it doesn't change m_active member. It just calls QDeclarativePositionSource::executeStart() which fails because m_positionSource is not yet initialized. Thus, m_active is still not set to true. And later, when QDeclarativePositionSource::tryAttach is called, m_active is not true.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ivan.solovev Ivan Solovev
            kiibimees Lauri Laanmets
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes