QTiltReading

The QTiltReading class holds readings from the tilt sensor. More

Inheritance diagram of PySide2.QtSensors.QTiltReading

Synopsis

Functions

Detailed Description

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

class QTiltReading(parent)
Parameters

parentQObject

PySide2.QtSensors.QTiltReading.setXRotation(x)
Parameters

xqreal

Sets xRotation to x .

See also

xRotation()

PySide2.QtSensors.QTiltReading.setYRotation(y)
Parameters

yqreal

Sets yRotation to y .

See also

yRotation()

PySide2.QtSensors.QTiltReading.xRotation()
Return type

qreal

See also

setXRotation()

PySide2.QtSensors.QTiltReading.yRotation()
Return type

qreal

See also

setYRotation()