The following members of class LocationDisplay are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
| ||compass() const|
| ||positionSource() const|
| ||setCompass(QCompass *compass)|
| ||setPositionSource(QGeoPositionInfoSource *positionSource)|
Member Function Documentation
QCompass *LocationDisplay::compass() const
QGeoPositionInfoSource *LocationDisplay::positionSource() const
void LocationDisplay::setCompass(QCompass *compass)
Sets the compass on the LocationDisplay.
To display position using a compass, two things must be done. First, a QCompass must be given to the LocationDisplay. This will acquire the azimuth and calibration level from the compass. Second, the LocationDisplayAutoPanMode must be set to CompassNavigation.
void LocationDisplay::setPositionSource(QGeoPositionInfoSource *positionSource)
Sets the positionSource on the LocationDisplay.