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:

parentPySide2.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..