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