Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1815

updateTimeout() is not emitted if update interval is set exactly to the minimum value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: Location
    • Labels:
      None
    • Environment:
      Nokia 5800 V52.0.007

      Description

      Code:
      m_highInfoSource = QGeoPositionInfoSource::createDefaultSource(this);
      m_highInfoSource->setPreferredPositioningMethods(QGeoPositionInfoSource::SatellitePositioningMethods);
      int highMinUpdateInterval = m_highInfoSource->minimumUpdateInterval(); // returns 1000
      m_highInfoSource->setUpdateInterval(highMinUpdateInterval);
      connect(m_highInfoSource, SIGNAL(positionUpdated(QGeoPositionInfo)), this, SLOT(highAccuracyPositionUpdated(QGeoPositionInfo)));
      connect(m_highInfoSource, SIGNAL(updateTimeout()), this, SLOT(highAccuracyUpdateTimeout()));

      Result:
      highAccuracyUpdateTimeout() is never called

      Workaround:
      Increase highMinUpdateInterval for at least 1 millisecond.
      m_highInfoSource->setUpdateInterval(highMinUpdateInterval + 1); // should do the trick

      Source code for repeating the problem is attached

        Attachments

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

          Activity

            People

            Assignee:
            shmahesh Shilpa Maheshwari
            Reporter:
            sergey.payu Sergey Payu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes