Hi.

I have an application where a QGraphicsItem (objectA) has the following characteristics:

ScenePos: X=250 Y=125

Transform():
|-----|---|---|
| 2 | 0 | 0 |
| 0 | 1 | 0 |
| 50 | 0 | 1 |
|-----|---|---|

Now, I am creating and new QGraphicsItem (objectB) and setting its scenepos and Transform the same as object A:

Qt Code:
  1. objectB = new QGraphicsPolygonItem();
  2. objectB->setPolygon(objectA->polygon());
  3. objectB->setScenePos(objectA->ScenePos);
  4. objectB->setTransform(objectA->transform);
To copy to clipboard, switch view to plain text mode 

The problem is that objectB appears displaced by 50 units in the X axis.

Any idea why?