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 PySide2.QtSensors.QTiltReading(parent)露
Parameters:

parent 鈥� PySide2.QtCore.QObject

PySide2.QtSensors.QTiltReading.setXRotation(x)露
Parameters:

x 鈥� float

Sets xRotation to x .

See also

xRotation()

PySide2.QtSensors.QTiltReading.setYRotation(y)露
Parameters:

y 鈥� float

Sets yRotation to y .

See also

yRotation()

PySide2.QtSensors.QTiltReading.xRotation()露
Return type:

float

This property holds This property holds the amount of tilt on the X axis..

PySide2.QtSensors.QTiltReading.yRotation()露
Return type:

float

This property holds This property holds the amount of tilt on the Y axis..