Thank you jpn, but I've already read that article and tried lots of examples from TT Labs but they all only work for the usual Z-Axis (which is not a problem and not really hard).
Thank you jpn, but I've already read that article and tried lots of examples from TT Labs but they all only work for the usual Z-Axis (which is not a problem and not really hard).
Keyword: 2D.The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
I believe you'll have to do more computations than that to get a rotation around X. Like obtaining a projection on XY plane of the rotated image rect and then map the image on the resulting shape. Then you'll get a trapezoid.
Well, I know. But I assumed since it also just uses QPainter with QTransform that wouldn't be a problem.
TT Labs also created examples to achieve that:
I looked into it but they all don't use QGraphicsView, they just use QWidget and paint the items on it with QPainter and QTransform (with similar code to mine above).
Are you sure they don't do any extra things to the pixmaps once they have the transforms?
Bookmarks