Expression painter:setmatrix(qtransform) sets the current transformation matrix. Argument qtransform must be a Qt variant of type qt.QTransform.
painter:setmatrix(qtransform)
qtransform
qt.QTransform