QTiltReading Class

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

头文件: #include <QTiltReading>
qmake: QT += sensors
开始支持版本: Qt 5.1
基类: QSensorReading

属性

公有函数

void setXRotation(qreal x)
void setYRotation(qreal y)
qreal xRotation() const
qreal yRotation() const

其他继承的成员

  • 1 个公有槽函数继承自 QObject
  • 2 个信号继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QTiltReading class holds readings from the tilt sensor.

The tilt sensor reports the angle of tilt in degrees of the device along the X and Y plane.

属性

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)

Sets xRotation to x.

参见 xRotation().

void QTiltReading::setYRotation(qreal y)

Sets yRotation to y.

参见 yRotation().