![]() |
Home · All Classes · All Functions · | ![]() |
The QOrientationReading class represents one reading from the orientation sensor. More...
#include <QOrientationReading>
Inherits QSensorReading.
| enum | Orientation { Undefined, TopUp, TopDown, LeftUp, ..., FaceDown } |
| Orientation | orientation () const |
| void | setOrientation ( Orientation orientation ) |
The QOrientationReading class represents one reading from the orientation sensor.
The orientation sensor returns the orientation of the device using the pre-defined values found in the QOrientationReading::Orientation enum.
This enum represents the orientation of the device.
To explain the meaning of each value it is helpful to refer to the following diagram.
Top
----------
/ NOKIA /|
/-------- / |
// // /
// // /
Left // Face // / Right
// // /
// // /
/---------/ /
/ O / /
/ / /
---------- /
|_________!/
Bottom
| Constant | Value | Description |
|---|---|---|
| QOrientationReading::Undefined | 0 | The orientation is unknown. |
| QOrientationReading::TopUp | 1 | The Top edge of the device is pointing up. |
| QOrientationReading::TopDown | 2 | The Bottom edge of the device is pointing up. |
| QOrientationReading::LeftUp | 3 | The Left edge of the device is pointing up. |
| QOrientationReading::RightUp | 4 | The Right edge of the device is pointing up. |
| QOrientationReading::FaceUp | 5 | The Face of the device is pointing up. |
| QOrientationReading::FaceDown | 6 | The Face of the device is pointing down. |
This property holds the orientation of the device.
The unit is an enumeration describing the orientation of the screen.
Access functions:
| Orientation | orientation () const |
See also QOrientationReading Units.
Sets the orientation for the reading.
See also orientation().
| Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |