Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to add AxisHelper in 3D scene



  • Dear developers,

    Please inform me how can I add axis helper in 3D scene. Attach you will find sample code but it is not working.

    Thank you very much !!

    Rectangle {
                 id: scene
                 width: 2
                 Layout.fillWidth: true
                 Layout.fillHeight: true
                 color: "grey"
    
                 AxisHelper{
                    id: axisHelper3DScene
                   enableAxisLines: true
                }
    
    
                 Scene3D {
                     id: scene3d
                     anchors.fill: parent
                     anchors.margins: 10
                     focus: true
                     aspects: ["input", "logic"]
                     cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
                     
    
    
    
    
                     AnimatedEntity {
                     id: animatedEntity
    
                     }
                 }
    
             }
    

Log in to reply