本页内容

TiltSensor QML Type

TiltSensor 元素会报告沿 X 轴和 Y 轴的倾斜事件。更多内容...

Import Statement: import QtSensors
Since: QtSensors 5.0
Inherits:

Sensor

方法

详细说明

TiltSensor 元素用于报告沿 X 轴和 Y 轴的倾斜事件。

该元素封装了QTiltSensor 类。详情请参阅QTiltSensor 的文档。

另请参阅 TiltReading 。

方法文档

void calibrate()

校准倾斜传感器。

另请参阅 QTiltSensor::calibrate()。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.