Hello there,

i have a problem with QGraphicsItem tranformation there is a link what i expect and what is happening http://i52.tinypic.com/mvn5gz.png, and here is the code ;
Qt Code:
  1. //origin point is center of item
  2. QTransform newTransform = QTransform().translate( origin.x(), origin.y() ).scale( 2, 1 )
  3. .translate( -origin.x(), -origin.y() );
  4. setTransform( newTransform, true);
  5.  
  6. //origin point could be change here but for now same center of item.
  7. newTransform = QTransform().translate( origin.x(), origin.y() ).rotate( 90 )
  8. .translate( -origin.x(), -origin.y() );
  9. setTransform(newTransform, true);
To copy to clipboard, switch view to plain text mode 
, could you help me figured out the problem , thanks