QTiltReading 类

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

额外继承成员

详细描述

QTiltReading class holds readings from the tilt sensor.

倾斜传感器报告设备沿 X 和 Y 平面的倾斜角 (以度为单位)。

特性文档编制

xRotation : const qreal

This property holds the amount of tilt on the X axis.

访问函数:

qreal xRotation () const

yRotation : const qreal

This property holds the amount of tilt on the Y axis.

访问函数:

qreal yRotation () const

成员函数文档编制

void QTiltReading:: setXRotation ( qreal x )

xRotation to x .

另请参阅 xRotation ().

void QTiltReading:: setYRotation ( qreal y )

yRotation to y .

另请参阅 yRotation ().