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.

[虛擬] 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 ().