InfiniteGrid QML Type

显示无限网格。更多

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.5

属性

详细说明

该辅助程序在水平面上实现了一个无限网格。当网格线汇聚时,或在最远剪辑距离处(以先到者为准),网格会逐渐消失。

网格需要是SceneEnvironment 的子网格。

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

属性文档

gridAxes : bool

该属性决定是否标记 X 轴和 Y 轴。如果true ,则 X 轴为红色,Y 轴为绿色。默认值为true


gridInterval : real

该属性定义网格线之间的距离。默认值为1.0


visible : bool

该属性决定是否显示网格。默认值为true


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