InfiniteGrid QML Type
Shows an infinite grid. More...
Import Statement: | import QtQuick3D.Helpers |
Since: | Qt 6.5 |
Properties
- gridAxes : bool
- gridInterval : float
- visible : bool
Detailed Description
This helper implements an infinite grid in the horizontal plane. The grid fades out as the grid lines converge or at the far clip distance, whichever comes first.
The grid needs to be a child of the SceneEnvironment.
View3D { environment: SceneEnvironment { backgroundMode: SceneEnvironment.SkyBox lightProbe: Texture { textureData: ProceduralSkyTextureData{} } InfiniteGrid { gridInterval: 100 } } //... }
Property Documentation
gridAxes : bool |
This property determines whether the X and Y axes are marked. If true
, the X-axis will be red and the Y-axis green. The default value is true
.
gridInterval : float |
This property defines the distance between grid lines. The default value is 1.0
.
visible : bool |
This property determines whether the grid is shown. The default value is true
.
© 2024 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.