Qt Quick 3D Xr QML Types

该模块处于技术预览阶段,内容可能会有变动。

该模块于 Qt 6.8 中推出。

该模块提供了 QML 类型,支持您开发 XR 应用程序并使用 XR API,例如空间锚点、透视模式和手部追踪。

XrCamera

用于追踪用户观看 XR 场景时的空间位置和方向

XrController

一个被追踪的空间节点,用于追踪输入控制器的位置和方向

XrErrorDialog

用于 PCVR 应用程序的自定义错误对话框

XrHandModel

表示一只手的 3D 模型

XrHapticEffect

表示一种触觉效果

XrHapticFeedback

控制 XR 控制器的触觉反馈

XrInputAction

表示来自输入控制器的一个动作

XrItem

位于3D空间中、可承载2D用户界面内容的虚拟表面

XrOrigin

XrView的原点位置

XrRuntimeInfo

显示有关 XR 运行时的信息

XrSimpleHapticEffect

允许通过振幅、持续时间和频率设置控制器触觉反馈

XrSpatialAnchor

在真实空间中追踪特定位置或物体

XrSpatialAnchorListModel

提供包含空间锚点的模型

XrView

为 Xr 应用程序设置视图

XrVirtualMouse

将 3D 控制器输入映射到 2D 项目中的鼠标输入

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