AxisHelper QML Type
Auxiliar visual para exibir os três eixos e uma grade em uma cena 3D. Mais...
| Import Statement: | import QtQuick3D.Helpers |
| Inherits: |
Propriedades
- enableAxisLines : bool
- enableXYGrid : bool
- enableXZGrid : bool
- enableYZGrid : bool
- gridColor : color
- gridOpacity : real
Descrição detalhada

O eixo X é vermelho, o eixo Y é verde e o eixo Z é azul.
A cena de exemplo aqui apresenta uma Esfera na posição (0, 0, 0) e um objeto AxisHelper. Com o auxiliar WasdController, é possível navegar pela cena com facilidade.
View3D {
anchors.fill: parent
camera: camera
PerspectiveCamera {
id: camera
position: Qt.vector3d(0, 0, 600)
}
DirectionalLight {
position: Qt.vector3d(-500, 500, -100)
color: Qt.rgba(0.4, 0.2, 0.6, 1.0)
ambientColor: Qt.rgba(0.1, 0.1, 0.1, 1.0)
}
Model {
source: "#Sphere"
materials: [ PrincipledMaterial { } ]
}
AxisHelper {
}
}
WasdController {
controlledObject: camera
}Documentação das propriedades
enableAxisLines : bool [default: true]
Ativa a exibição das linhas dos eixos.
enableXYGrid : bool [default: false]
Ativa a grade no plano XY.
enableXZGrid : bool
/default true Ativa a grade no plano XZ.
enableYZGrid : bool [default: false]
Ativa a grade no plano YZ.
gridColor : color [default: Qt.rgba(0.8, 0.8, 0.8, 1)]
Especifica a cor da grade.
gridOpacity : real [default: 0.5]
Especifica a opacidade da grade.
© 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.