PDA

View Full Version : QGraphics Item Transformation inheritance



jsabater
14th August 2009, 14:26
Hi,

I have a problem with Transformation iinheritance in QGraphicsItems

I have 3 QGraphicsItem (A, B and C). All of them have the flag: "QGraphicsItem::ItemIgnoresTransformations" set to TRUE

C is child of B, and B is child of A. In a tree it could look something like this:

A
|
+B
| |
| +C
| | |
. . .


If apply some rotation transformation ONLY to A, B and C look fine.

If I apply some rotation transformation to A and B, C inherits the transformation from B (independently of the FLAG).


Has any realized about this behaviour? I think this should not be the desired behaviour.

I am using Qt 4.5.2