AxisHelper QML Type
Ayuda visual para mostrar los tres ejes y una cuadrícula en una escena 3D. Más...
| Import Statement: | import QtQuick3D.Helpers |
| Inherits: |
Propiedades
- enableAxisLines : bool
- enableXYGrid : bool
- enableXZGrid : bool
- enableYZGrid : bool
- gridColor : color
- gridOpacity : real
Descripción detallada

El eje X es rojo, el eje Y es verde y el eje Z es azul.
La escena de ejemplo que se muestra aquí contiene una esfera situada en la posición (0, 0, 0) y un objeto «AxisHelper». Con el ayudante « WasdController » se puede navegar cómodamente por la escena.
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
}Documentación de propiedades
enableAxisLines : bool [default: true]
Permite mostrar las líneas de los ejes.
enableXYGrid : bool [default: false]
Activa la cuadrícula en el plano XY.
enableXZGrid : bool
/default true Activa la cuadrícula en el plano XZ.
enableYZGrid : bool [default: false]
Activa la cuadrícula en el plano YZ.
gridColor : color [default: Qt.rgba(0.8, 0.8, 0.8, 1)]
Especifica el color de la cuadrícula.
gridOpacity : real [default: 0.5]
Especifica la opacidad de la cuadrícula.
© 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.