QTiltSensorclass is a convenience wrapper aroundQSensor. 更多 …
唯一行为差异是此类正确设置类型。
invokeMethod(, “calibrate”);此类还特征
reading()function that returns aQTiltReading而不是QSensorReading.有关传感器如何工作的细节,见
QTiltReading.另请参阅
QTiltSensor
(
[
parent=Q_NULLPTR
]
)
¶
- param parent
QObject
构造传感器作为子级对于
parent
.
PySide2.QtSensors.QTiltSensor.
type
¶
PySide2.QtSensors.QTiltSensor.
calibrate
(
)
¶
Calibrates the tilt sensor. Uses the current tilt angles as 0.