本页内容

XrSimpleHapticEffect QML Type

支持通过振幅、持续时间和频率设置控制器触觉反馈。更多...

Import Statement: import QtQuick3D.Xr
Since: Qt 6.9
Inherits:

XrHapticEffect

Status: Technology preview

此类型处于技术预览阶段,可能会有变动。

属性

详细说明

XrSimpleHapticEffect {
    amplitude: 0.5
    duration: 300
    frequency: 3000
}

另请参阅 XrHapticFeedback 。

属性文档

amplitude : bool [default: 0.5]

用于定义该效果的振动幅度。有效值范围为 0.0 至 1.0

duration : bool [default: 30]

定义触觉效果的持续时间(单位:毫秒)。

frequency : bool [default: 3000]

定义触觉效果的频率(单位:赫兹)

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