Important: Please read the Qt Code of Conduct -

how to set transform/rotation origin of 3D object?

  • I wish to rotate a 3D object, the rotation is based on the center point of the object. I wish to change it to the one edge of the object.
    How should I do it?

    Model {
                z: 10
                source: "#Cube"
                position: Qt.vector3d(500, 0, 0)
                scale: Qt.vector3d(10, 0.05, 0.05)
                eulerRotation: Qt.vector3d(xDegree.value, yDegree.value, zDegree.value)
                materials: DefaultMaterial {
                    lighting: DefaultMaterial.NoLighting
                    diffuseColor: "red"

    Here is the rotation effect (it looks like a 2D line, as I scaled it)
    Screenshot from 2020-07-24 18-56-33.png Screenshot from 2020-07-24 18-56-46.png

    Thank you very much for your help in advance!

Log in to reply