Accelerometer QML Type

The Accelerometer element reports on linear acceleration along the X, Y and Z axes. 更多...

Import Statement: import QtSensors 5.0
开始支持版本: QtSensors 5.0
基类:

Sensor

属性

详细描述

The Accelerometer element reports on linear acceleration along the X, Y and Z axes.

This element wraps the QAccelerometer class. Please see the documentation for QAccelerometer for details.

参见 AccelerometerReading.

属性

accelerationMode : AccelerationMode

This property holds the current acceleration mode.

Please see QAccelerometer::accelerationMode for information about this property.

This QML property was introduced in QtSensors 5.1.