InstanceModel QML Type

Defines a data model based on an instance table. 更多...

import 语句: import QtQuick3D.Helpers
Since: Qt 6.4
继承: Object3D

特性

详细描述

The InstanceModel QML type is a data model that provides access to the elements of an Instancing table.

The following roles are available:

Role name 描述
modelPosition The position of the instance as a vector3d
modelRotation The rotation of the instance as a quaternion
modelScale The scale of the instance as a vector3d
modelColor The color of the instance
modelData The custom data of the instance as a vector4d

另请参阅 InstanceRepeater .

特性文档编制

instancingTable : Instancing

This property specifies the underlying instance table of the model.