QTiltReading 类保持来自倾斜传感器的读数。 更多...
| 头: | #include <QTiltReading> |
| qmake: | QT += sensors |
| Since: | Qt 5.1 |
| 继承: | QSensorReading |
该类在 Qt 5.1 引入。
| void | setXRotation (qreal x ) |
| void | setYRotation (qreal y ) |
| qreal | xRotation () const |
| qreal | yRotation () const |
倾斜传感器报告设备沿 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 ().