内容表

上一话题

QRotationReading

下一话题

QSensor

QRotationSensor

QRotationSensor class is a convenience wrapper around QSensor . 更多

Inheritance diagram of PySide2.QtSensors.QRotationSensor

概要

函数

信号

详细描述

唯一行为差异是此类正确设置类型。

此类还特征 reading() function that returns a QRotationReading 而不是 QSensorReading .

有关传感器如何工作的细节,见 QRotationReading .

另请参阅

QRotationReading

class QRotationSensor ( [ parent=Q_NULLPTR ] )
param parent

QObject

构造传感器作为子级对于 parent .

PySide2.QtSensors.QRotationSensor. type
PySide2.QtSensors.QRotationSensor. hasZ ( )
返回类型

bool

另请参阅

setHasZ()

PySide2.QtSensors.QRotationSensor. hasZChanged ( hasZ )
参数

hasZ bool

PySide2.QtSensors.QRotationSensor. setHasZ ( hasZ )
参数

hasZ bool

Sets whether the z angle is available to hasZ . This is to be called from the backend. By default the hasZ property is true, so a backend only has to call this if its rotation sensor can not report z angles.

另请参阅

hasZ()