Hi
I have a QGraphicsScene scene and Item which inherits the QGraphicsRectItem properties. I am taking points from scene MousePressEvent and MouseReleseevents and Drawing a Rectangle with
Qt Code:
  1. QRect(TopLeft,BottomRight)
To copy to clipboard, switch view to plain text mode 
with both points(MousePressEvent and MouseReleseevents ).
Whem I say
Qt Code:
  1. item->rotate(qreal);
To copy to clipboard, switch view to plain text mode 
the item is been rotated from the topleft point where as i want it to rotate from center of the Rectangle.
Hope u got my point. So, What i need to do to rotate item from its center point.