How to apply a deformation to a QgraphicsView
-
I'm using QGrahicsView/ Scene and QGraphicsItem to display a scene.
I know that we can use setTransform() to a view. But I don't think what I'm trying to do can be done by this.
Well, I want to apply a non-linear transform to a view from (x, y) to (x,y') with y' = f(y). The function f can be all kind of QEasingCurve functions.
Any idea how can I do this, plz?
-
I found drawItems() is obsolete. This function could be used for custom drawing for a view.
My follow up question is how items are drawn in a view?