Nesta página

InfiniteGrid QML Type

Exibe uma grade infinita. Mais...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.5

Propriedades

Descrição detalhada

Este helper implementa uma grade infinita no plano horizontal. A grade desaparece gradualmente à medida que as linhas da grade convergem ou quando atinge a distância máxima de recorte, o que ocorrer primeiro.

A grade precisa ser um elemento filho da ` SceneEnvironment`.

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

Documentação das propriedades

gridAxes : bool

Essa propriedade determina se os eixos X e Y serão destacados. Se true, o eixo X ficará vermelho e o eixo Y, verde. O valor padrão é true.

gridInterval : real

Essa propriedade define a distância entre as linhas da grade. O valor padrão é 1.0.

visible : bool

Essa propriedade determina se a grade é exibida. O valor padrão é ` 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.