En esta página

InfiniteGrid QML Type

Muestra una cuadrícula infinita. Más...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.5

Propiedades

Descripción detallada

Este ayudante implementa una cuadrícula infinita en el plano horizontal. La cuadrícula se desvanece a medida que las líneas de la cuadrícula convergen o al alcanzar la distancia de recorte máxima, lo que ocurra primero.

La cuadrícula debe ser un elemento secundario de la clase « SceneEnvironment ».

View3D {
    environment: SceneEnvironment {
        backgroundMode: SceneEnvironment.SkyBox
        lightProbe: Texture {
            textureData: ProceduralSkyTextureData{}
        }
        InfiniteGrid {
            gridInterval: 100
        }
    }
    //...
 }

Documentación de propiedades

gridAxes : bool

Esta propiedad determina si se marcan los ejes X e Y. Si se establece en « true », el eje X aparecerá en rojo y el eje Y en verde. El valor por defecto es « true ».

gridInterval : real

Esta propiedad define la distancia entre las líneas de la cuadrícula. El valor predeterminado es « 1.0 ».

visible : bool

Esta propiedad determina si se muestra la cuadrícula. El valor por defecto es « true ».

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