Name Description Size Coverage
CMakeLists.txt 1890 -
openxr -
plugin.cpp 700 -
qquick3dxrabstracthapticeffect.cpp ! \qmltype XrHapticEffect \qmlabstract \inherits QtObject \inqmlmodule QtQuick3D.Xr \brief Represents a haptic effect. \since 6.9 XrHapticEffect defines the characteristics of the haptic effect. This type is abstract. Use a subtype, such as \l XrSimpleHapticEffect. \sa XrHapticFeedback XrSimpleHapticEffect 2209 -
qquick3dxrabstracthapticeffect_p.h 1670 -
qquick3dxractionmapper.cpp ! \qmltype XrInputAction \inherits QtObject \inqmlmodule QtQuick3D.Xr \brief Represents an action from an input controller. Actions can be boolean, such as a button press, or analog, such as a joystick axis. Use the \l pressed property or the \l triggered signal to react to a boolean action. An analog action will set the \l value property. \note For convenience, an analog property will also set the \c pressed property and emit the \c triggered signal, while a boolean property will set \c value to 1.0 when pressed. The following shows how to react to either the right hand grip being pressed or to a right hand pinch gesture from hand tracking: \qml XrInputAction { hand: XrInputAction.RightHand actionId: [XrInputAction.SqueezePressed, XrInputAction.SqueezeValue, XrInputAction.IndexFingerPinch] onTriggered: console.log("Do action here.") } \endqml The reason for specifying both \c SqueezePressed and \c SqueezeValue is that some controllers have an analog grip button, and some controllers just have an on/off grip switch. 16567 -
qquick3dxractionmapper_p.h 7580 -
qquick3dxranimationdriver.cpp 650 -
qquick3dxranimationdriver_p.h 899 -
qquick3dxrcamera.cpp ! \qmltype XrCamera \inherits Node \inqmlmodule QtQuick3D.Xr \brief Tracks spatial position and orientation from which the user views an XR scene. The XrCamera is a tracked spatial node that tracks the spatial position and orientation of the users's view of an XR scene. Since this is a tracked node, its spatial properties should be considered read-only. Properties specific to the XrCamera, such as the \l{clipNear}{near} and \l{clipFar}{far} clip planes, are settable. When set, they override preferred values. \sa XrOrigin::camera 8220 -
qquick3dxrcamera_p.h 3927 -
qquick3dxrcontroller.cpp ! \qmltype XrController \inherits Node \inqmlmodule QtQuick3D.Xr \brief A tracked spatial node that tracks the position and orientation of an input controller. The XrController is a tracked spatial node that tracks the position and orientation of an input controller. Since this is a tracked node, its spatial properties should be considered read-only. \sa XrInputAction 6090 -
qquick3dxrcontroller_p.h 3353 -
qquick3dxrhandinput.cpp 2141 -
qquick3dxrhandinput_p.h 1861 -
qquick3dxrhandmodel.cpp ! \qmltype XrHandModel \inherits Model \inqmlmodule QtQuick3D.Xr \brief Represents a 3D model for a hand. Contains an animated 3D model that tracks the user's hands. XrHandModel is only visible when hand tracking is active. \note XrHandModel depends on hand-tracking data from the underlying system and is, therefore, not available on all platforms. \section1 Platform Notes \section2 Apple Vision Pro The Apple Vision Pro will overlay video of the user's hands directly, and the XrHandModel will not have any content. \section2 Meta devices This required the following feature and permission lines to be added in the AndroidManifest.qml file of your project. \badcode <uses-permission android:name="com.oculus.permission.HAND_TRACKING" /> <uses-feature android:name="oculus.software.handtracking" android:required="false" /> \endcode Use \c true instead of \c false in the \c uses-feature tag if your app's interaction is implemented only for hands. 4027 -
qquick3dxrhandmodel_p.h 1596 -
qquick3dxrinputmanager.cpp 1613 -
qquick3dxrinputmanager_p.h 1449 -
qquick3dxritem.cpp 12149 -
qquick3dxritem_p.h 2819 -
qquick3dxrmanager.cpp 7407 -
qquick3dxrmanager_p.h 3074 -
qquick3dxrorigin.cpp ! \qmltype XrOrigin \inherits Node \inqmlmodule QtQuick3D.Xr \brief The origin location for the XrView. The origin determines the center of the \l{XrView::referenceSpace}{reference space}. Changing the position of the origin will transport the user to a different position in the scene. Most XR platforms allow the user to move physically, changing the viewpoint. This does not change the position of the origin. To track the position of the headset, create an XrCamera and assign it to the \l camera property. \warning Ensure you follow best practices when changing the position/rotation of the origin. Not doing so may cause physical discomfort, nausea, or loss of balance. In the worst case, this could lead to injury or even death. 4130 -
qquick3dxrorigin_p.h 1720 -
qquick3dxrruntimeinfo.cpp ! \qmltype XrRuntimeInfo \inherits Item \inqmlmodule QtQuick3D.Xr \brief Displays information about the XR runtime. This type provides information about the XR runtime, including enabled extensions, runtime name, version, graphics API name, and whether multi-view rendering is supported. \note This type is automatically created by an \l XrView, and it can not be manually created. 3204 -
qquick3dxrruntimeinfo_p.h 1438 -
qquick3dxrspatialanchor.cpp ! \qmltype XrSpatialAnchor \inherits QtObject \inqmlmodule QtQuick3D.Xr \brief Tracks a specific location or object in real space. This type represents a spatial anchor that tracks a specific location or object in real space. It provides information about the anchor's position, rotation, classification, and bounds. Spatial anchors are accessed through an \l XrSpatialAnchorListModel. \note The system provides Anchor objects. They cannot be created in QML. See the \l{Qt Quick 3D - XR Spatial Anchors Example} for how to use this type. \section1 Platform notes \section2 Meta Quest Devices This API makes use of the Meta Quest Scene and Spatial Anchor APIs. You need to add the following permissions to your app's \c AndroidManifest.xml file: \badcode <uses-permission android:name="com.oculus.permission.USE_ANCHOR_API"/> <uses-permission android:name="com.oculus.permission.USE_SCENE"/> \endcode \note You need to manually set up a Space before running an app, or anchors will not be available. 11458 -
qquick3dxrspatialanchor_p.h 4499 -
qquick3dxrspatialanchorlistmodel.cpp ! \qmltype XrSpatialAnchorListModel \inherits ListModel \inqmlmodule QtQuick3D.Xr \brief Provides a model containing spatial anchors. This type provides a list of spatial anchors, which are points in the physical world that can be tracked and associated with virtual content. The list contains elements that have an \c anchor property with the type \l XrSpatialAnchor. You can use it like this: \qml Repeater3D { model: XrSpatialAnchorListModel { } delegate: Node { required property XrSpatialAnchor anchor position: anchor.position rotation: anchor.rotation // Further use of anchor properties... } } \endqml 13047 -
qquick3dxrspatialanchorlistmodel_p.h 3549 -
qquick3dxrview.cpp ! \qmltype XrView \inherits Node \inqmlmodule QtQuick3D.Xr \brief Sets up the view for an Xr application. An XrView sets up the view for an XR application. The following snippet is from the \l{\qxr Simple Example} and shows how to use the type. \quotefromfile xr_simple/main.qml \printto XrOrigin \section1 Platform notes \section2 Meta Quest Devices To \l{XrView::passthroughEnabled}{enable passthrough} you need to add the following permisson your app's \c AndroidManifest.xml file: \badcode <uses-feature android:name="com.oculus.feature.PASSTHROUGH" android:required="false"/> \endcode 38392 -
qquick3dxrview_p.h 6776 -
qquick3dxrvirtualmouse.cpp ! \qmltype XrVirtualMouse \inherits Item \inqmlmodule QtQuick3D.Xr \brief Maps 3D controller input to mouse input in 2D items. The XrVirtualMouse provides a way to interact with \l{Qt Quick 3D Scenes with 2D Content}{2D user interfaces} in the 3D scene. It is typically used like this: \qml // XrView { id: xrView // XrController { id: rightController XrInputAction { id: rightTrigger hand: XrInputAction.RightHand actionId: [XrInputAction.TriggerPressed, XrInputAction.TriggerValue] } XrVirtualMouse { view: xrView source: rightController leftMouseButton: rightTrigger.pressed } \endqml 10534 -
qquick3dxrvirtualmouse_p.h 3836 -
qtquick3dxrglobal.h 325 -
qtquick3dxrglobal_p.h 2409 -
visionos -
XrErrorDialog.qml 778 -