The QTiltReading class holds readings from the tilt sensor. 更多...
| 頭: | #include <QTiltReading> |
| qmake: | QT += sensors |
| Since: | Qt 5.1 |
| 繼承: | QSensorReading |
| void | setXRotation (qreal x ) |
| void | setYRotation (qreal y ) |
| qreal | xRotation () const |
| qreal | yRotation () const |
The QTiltReading class holds readings from the tilt sensor.
傾斜傳感器報告設備沿 X 和 Y 平麵的傾斜角 (以度為單位)。
This property holds the amount of tilt on the X axis.
訪問函數:
| qreal | xRotation () const |
This property holds the amount of tilt on the Y axis.
訪問函數:
| qreal | yRotation () const |
集 xRotation to x .
另請參閱 xRotation ().
集 yRotation to y .
另請參閱 yRotation ().