understanding transform
Unsolved
QML and Qt Quick
-
import QtQuick 2.0
Row{
x:10 y:10
spacing: 10Image{ source:"pics/qt.png"} Image{ source:"pics/qt.png" transform: Rotation{ origin.x:30, origin.y:30, axis{x:0, y:1, z:0} angle:18} }
My understanding, pics will be rotated from origin towards axis? how does angle comes in
default axis is Z axis
what is default angle? -
@houmingc You took that example straight from the documentation page for Rotation, which shows a picture of exactly what will happen. What more do you need? "Default angle" makes no sense. If you don't specify one there will be no rotation. It rotates around the origin along the axis. If you still don't understand, make a quick example and play around with it.