InfiniteGrid QML Type
显示无限网格。更多...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.5 |
属性
- gridAxes : bool
- gridInterval : real
- visible : bool
详细说明
该辅助类在水平平面上实现了一个无限网格。当网格线收敛或达到远裁剪距离时(以先发生者为准),网格将逐渐淡出。
该网格必须是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 。
© 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.