QCompassReading Class ReferenceThe QCompassReading class represents one reading from a compass. More... #include <QCompassReading> Inherits: QSensorReading. This class was introduced in Qt Mobility 1.0. Properties
Public Functions
Additional Inherited Members
Detailed DescriptionThe QCompassReading class represents one reading from a compass. QCompassReading UnitsThe compass returns the azimuth of the device as degrees from magnetic north in a clockwise direction based on the top of the UI. There is also a value to indicate the calibration status of the device. If the device is not calibrated the azimuth may not be accurate. Digital compasses are susceptible to magnetic interference and may need calibration after being placed near anything that emits a magnetic force. Accuracy of the compass can be affected by any ferrous materials that are nearby. The calibration status of the device is measured as a number from 0 to 1. A value of 1 is the highest level that the device can support and 0 is the worst. See also CS001671 - Calibrating the magnetometer sensor. Property Documentation
|
qreal | azimuth () const |
See also QCompassReading Units.
This property holds the calibration level of the reading.
Measured as a value from 0 to 1 with higher values being better.
This property was introduced in Qt Mobility 1.0.
Access functions:
qreal | calibrationLevel () const |
See also QCompassReading Units and CS001671 - Calibrating the magnetometer sensor.
Sets the azimuth of the device.
This function was introduced in Qt Mobility 1.0.
See also azimuth() and QCompassReading Units.
Sets the calibration level of the reading to calibrationLevel.
This function was introduced in Qt Mobility 1.0.
See also calibrationLevel().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com