XrSpatialAnchorListModel QML Type

Provides a model containing spatial anchors. 更多...

import 語句: import QtQuick3D.Xr
Since: Qt 6.8
繼承:

ListModel

狀態: 技術預覽

詳細描述

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 anchor property with the type XrSpatialAnchor .

You can use it like this:

Repeater3D {
    model: XrSpatialAnchorListModel {
    }
    delegate: Node {
        required property XrSpatialAnchor anchor
        position: anchor.position
        rotation: anchor.rotation
        // Further use of anchor properties...
    }
}