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 平麵的傾斜角 (以度為單位)。
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 |
Default constructs an instance of QTiltReading.
[虛擬]
QTiltReading::
~QTiltReading
()
Destroys the instance of QTiltReading. The destructor is virtual.
[override virtual]
void
QTiltReading::
copyValuesFrom
(
QSensorReading
*
other
)
集 xRotation to x .
另請參閱 xRotation ().
集 yRotation to y .
另請參閱 yRotation ().