En esta página

InstanceRepeater QML Type

Instancia componentes basados en una tabla de instancias. Más...

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

Repeater3D

Propiedades

Descripción detallada

El tipo InstanceRepeater se utiliza para crear una serie de objetos basados en una tabla Instancing. Es un subtipo de Repeater3D que toma una tabla Instancing en lugar de un modelo de datos, y aplica automáticamente position, scale, y rotation.

Un caso de uso es implementar picking creando objetos ficticios invisibles que coincidan con las instancias renderizadas. Para mejorar el rendimiento, los objetos ficticios pueden crearse con una geometría más simple que los modelos instanciados.

Por ejemplo:

InstanceRepeater {
    instancingTable: myInstanceTable
    Model {
        source: "#Cube"
        pickable: true
        property int instanceIndex: index // expose the index, so we can identify the instance
        opacity: 0
    }
}

Véase también InstanceModel.

Documentación de propiedades

instancingTable : Instancing

Esta propiedad especifica la tabla de instancia utilizada por el repetidor.

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