Image in QQuick3D mesh not preserving aspect ratio
Unsolved
QML and Qt Quick
-
I am trying to load an image in a mesh (#Cube) but the image is not preserving aspect ratio. I need assistance
Below is my code
Node { //eulerRotation: Qt.vector3d(20, -40 + cubeRotation, -10 + cubeRotation) eulerRotation: Qt.vector3d(10, -5, -10 + cubeRotation) Model { id: qtCube source: "#Cube" scale: Qt.vector3d(3.5, 3.5, 3.5) opacity: 0 materials: DefaultMaterial { diffuseMap: Texture { source: "file:///home/pi/mybiz/favourites/" +cubeBurstSource } //diffuseMap: Texture { source: "image://images/result" } } }