Hi,
Am Mittwoch, 12. September 2012, 17:19:26 schrieb Duan, Lin:
> Hello list,
>
> I want to Rotate my QGraphicsItem by the axis behind the screen.
[...]
I guess, you'll have to combine translation and rotation and to somehow
provide your own QMatrix4x4 to QGraphicsItem...
http://en.wikipedia
I have no Idea if it will work with QGraphicScene, but if you use
translations and rotations in R³ you have to think about the order of
them. T * R * v != R * T * v (with T = Translationmatrix, R =
Rotationmatrix and v = vector). So Try setting the position of the item
to 0|0|0, perform the rot
Am 12.09.2012 um 11:19 schrieb "Duan,Lin" :
> ...
>
> How can I do , so it can performed as expected (first graph)?
I think you can't: from what I understand you are trying to perform a rotation
in 3D space, whereas QGraphicsScene/View only manage 2D (or "pseudo 3D" aka
2.5D, if you take
Hello list,
I want to Rotate my QGraphicsItem by the axis behind the screen. As graph
follow:
[cid:image001.gif@01CD9107.6082B5F0]
My code like this:
QGraphicsItem* m_item = new QGraphicsItem_subclass();
QGraphicsRotation* m_rotation = new QGraphicsRotation();;
QPropertyAnimation* m_animation =