QAccelerometerReading#
The QAccelerometerReading
class reports on linear acceleration along the X, Y and Z axes. More…
Synopsis#
Properties#
Functions#
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
QAccelerometerReading Units#
The scale of the values is meters per second squared. The axes are arranged as follows.
A monoblock device sitting at rest, face up on a desk will experience a force of approximately 9.8 on the Z axis (ie. towards the roof). This is the proper acceleration the device experiences relative to freefall.
- class PySide6.QtSensors.QAccelerometerReading(parent)#
- Parameters:
parent –
PySide6.QtCore.QObject
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtSensors.QAccelerometerReading.x: float#
This property holds the acceleration on the X axis..
The scale of the values is meters per second squared.
See also
QAccelerometerReading Units
- Access functions:
x
()
- property PᅟySide6.QtSensors.QAccelerometerReading.y: float#
This property holds the acceleration on the Y axis..
The scale of the values is meters per second squared.
See also
QAccelerometerReading Units
- Access functions:
y
()
- property PᅟySide6.QtSensors.QAccelerometerReading.z: float#
This property holds the acceleration on the Z axis..
The scale of the values is meters per second squared.
See also
QAccelerometerReading Units
- Access functions:
z
()
- PySide6.QtSensors.QAccelerometerReading.setX(x)#
- Parameters:
x – float
Sets the acceleration on the X axis to x
.
See also
- PySide6.QtSensors.QAccelerometerReading.setY(y)#
- Parameters:
y – float
Sets the acceleration on the Y axis to y
.
See also
- PySide6.QtSensors.QAccelerometerReading.setZ(z)#
- Parameters:
z – float
Sets the acceleration on the Z axis to z
.
See also
Getter of property x
.
Getter of property y
.
Getter of property z
.