Using matrix to describe a QQuickItem's transformation
-
Hi,
Does anybody know how to apply a transformation described by QTransform to QQuickItem?
In QQuickItem there are only setPosition, setRotation and setScale methods and i just can't compose them into a desired transformation. I tried a lot of solutions, most interesting is setting my matrix in UpdatePaintNodeData:: transformNode in QQuickItem::updatePaintNode. This solution would be great if it didn't mess up all mouse events delivered to this item. I mean that these events don't take under consideration updatePaintNodeData->transformNode->matrix().
My main goal is to have a 2d scene which can be easily transformed by a matrix, with valid mouse events.Pls help