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 ().