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