PDA

View Full Version : User defined rotations and scales with the mouse?



qlands
3rd August 2010, 14:31
Hi,

Do anyone knows of an example for implementing user defined rotations and scales using the mouse and using QTransform or QMatrix4x4? For example having a polygon on a 2D canvas, to allow the user to scale and rotate the box with the mouse.

Thanks,
Carlos

GreenScape
3rd August 2010, 20:06
Qt demonstrations -> Affine Transformations (http://doc.qt.nokia.com/4.6/demos-affine.html)