AxisHelper QML Type
Aide visuelle permettant d'afficher les 3 axes et une grille dans une scène 3D. Plus d'informations...
| Import Statement: | import QtQuick3D.Helpers |
| Inherits: |
Propriétés
- enableAxisLines : bool
- enableXYGrid : bool
- enableXZGrid : bool
- enableYZGrid : bool
- gridColor : color
- gridOpacity : real
Description détaillée

L'axe X est rouge, l'axe Y est vert et l'axe Z est bleu.
La scène d'exemple ici a une sphère à la position (0, 0, 0) et un objet AxisHelper. L'aide WasdController permet de naviguer facilement dans la scène.
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
}Documentation sur les propriétés
enableAxisLines : bool [default: true]
Permet d'afficher les lignes d'axe.
enableXYGrid : bool [default: false]
Active la grille sur le plan XY.
enableXZGrid : bool
/default true Active la grille sur le plan XZ.
enableYZGrid : bool [default: false]
Active la grille sur le plan YZ.
gridColor : color [default: Qt.rgba(0.8, 0.8, 0.8, 1)]
Spécifie la couleur de la grille.
gridOpacity : real [default: 0.5]
Spécifie l'opacité de la grille.
© 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.