Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dxrspatialanchorlistmodel.cpp File Reference

(7f7722479b84b438eb040eba8a72126cbd78c63d)

Include dependency graph for qquick3dxrspatialanchorlistmodel.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE QString getClassificationString (QQuick3DXrSpatialAnchorListModel::ClassificationFlag classification)
static QQuick3DXrSpatialAnchorListModel::ClassificationFlag getClassificationFlagType (QQuick3DXrSpatialAnchor::Classification classification)

Function Documentation

◆ getClassificationFlagType()

◆ getClassificationString()

QT_BEGIN_NAMESPACE QString getClassificationString ( QQuick3DXrSpatialAnchorListModel::ClassificationFlag classification)
static
\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

Definition at line 42 of file qquick3dxrspatialanchorlistmodel.cpp.