QTiltReading 类

The QTiltReading class holds readings from the tilt sensor. 更多...

头: #include <QTiltReading>
qmake: QT += sensors
Since: Qt 5.1
继承: QSensorReading

特性

公共函数

QTiltReading (QObject * parent = DECLARE_READING(QTiltReading))
virtual ~QTiltReading ()
void setXRotation (qreal x )
void setYRotation (qreal y )
qreal xRotation () const
qreal yRotation () const

重实现公共函数

virtual void copyValuesFrom (QSensorReading * other ) override

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

The 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

成员函数文档编制

QTiltReading:: QTiltReading ( QObject * parent = DECLARE_READING(QTiltReading))

Default constructs an instance of QTiltReading.

[virtual] QTiltReading:: ~QTiltReading ()

Destroys the instance of QTiltReading. The destructor is virtual.

[override virtual] void QTiltReading:: copyValuesFrom ( QSensorReading * other )

void QTiltReading:: setXRotation ( qreal x )

xRotation to x .

另请参阅 xRotation ().

void QTiltReading:: setYRotation ( qreal y )

yRotation to y .

另请参阅 yRotation ().