QTiltReadingclass holds readings from the tilt sensor. 更多 …
def
setXRotation
(x)
def
setYRotation
(y)
def
xRotation
()
def
yRotation
()
The tilt sensor reports the angle of tilt in degrees of the device along the X and Y plane.
QTiltReading
(
parent
)
¶
parent
–
QObject
PySide2.QtSensors.QTiltReading.
xRotation
(
)
¶
qreal
另请参阅
PySide2.QtSensors.QTiltReading.
yRotation
(
)
¶
qreal
另请参阅