QTiltReading 類

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 平麵的傾斜角 (以度為單位)。

特性文檔編製

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