InstanceRepeater QML Type
Crea instancias de componentes a partir de una tabla de instancias. Más...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.4 |
| Inherits: |
Propiedades
- instancingTable : Instancing
Descripción detallada
El tipo InstanceRepeater se utiliza para crear varios objetos basados en una tabla de « Instancing ». Es un subtipo de « Repeater3D » que toma una tabla de instanciación en lugar de un modelo de datos, y aplica automáticamente « position », « scale » y « rotation ».
Un caso de uso consiste en implementar la técnica « 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 sencilla que la de 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 instancias que utiliza 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.