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

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 1.1.3
    • Location
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated: