hi
how to rotate a part of the rectangular area inside widgets area.
suppose a widget has a size of QRect(0,0 700x500) now if i want to rotate the area of rectangle QRect(10,10,30,20) with respect to QPoint(10,10) , how to rotate it.
hi
how to rotate a part of the rectangular area inside widgets area.
suppose a widget has a size of QRect(0,0 700x500) now if i want to rotate the area of rectangle QRect(10,10,30,20) with respect to QPoint(10,10) , how to rotate it.
See QMatrix or QTransform.
babu198649 (18th March 2008)
You may or may not find this code useful.
Go to
http://labs.trolltech.com/page/Graphics/Examples
and use Subversion to fetch QTransform 2
When the demo is set to rotate around the Z axis, it is probably doing what you want.
Bookmarks