Hi, All!
How to rotate a QGraphicsRectItem concerning an any point of a
QGraphicsScene?
Hi, All!
How to rotate a QGraphicsRectItem concerning an any point of a
QGraphicsScene?
Qt Code:
rect.translate( -anyPoint.x(), -anyPoint.y() ); rect.rotate( angle ); rect.translate( anyPoint.x(), anyPoint.y() );To copy to clipboard, switch view to plain text mode
LestorN (20th October 2006)
Bookmarks