QAccelerometerReading Class▲
-
Header: QAccelerometerReading
-
Since: Qt 5.1
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Sensors)
target_link_libraries(mytarget PRIVATE Qt6::Sensors)
-
qmake: QT += sensors
-
Inherits: QSensorReading
-
Group: QAccelerometerReading is part of sensors_reading
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.
Property Documentation▲
[read-only] x : const qreal▲
This property holds the acceleration on the X axis.
The scale of the values is meters per second squared.
Access functions:
-
qreal x() const
See Also▲
See also QAccelerometerReading Units
[read-only] y : const qreal▲
This property holds the acceleration on the Y axis.
The scale of the values is meters per second squared.
Access functions:
-
qreal y() const
See Also▲
See also QAccelerometerReading Units
[read-only] z : const qreal▲
This property holds the acceleration on the Z axis.
The scale of the values is meters per second squared.
Access functions:
-
qreal z() const
See Also▲
See also QAccelerometerReading Units