Sur cette page

InstanceModel QML Type

Définit un modèle de données basé sur une table d'instance. Plus d'informations...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.4
Inherits:

Object3D

Propriétés

Description détaillée

Le type QML InstanceModel est un modèle de données qui permet d'accéder aux éléments d'un tableau Instancing.

Les rôles suivants sont disponibles :

Nom du rôleDescription de l'instance
modelPositionLa position de l'instance en tant que vector3d
modelRotationLa rotation de l'instance en tant que quaternion
modelScaleL'échelle de l'instance comme a vector3d
modelColorLe site color de l'instance
modelDataLes données personnalisées de l'instance en tant que vector4d

Voir aussi InstanceRepeater.

Documentation sur les propriétés

instancingTable : Instancing

Cette propriété spécifie la table d'instance sous-jacente du modèle.

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