QTransform myTransform; myTransform.rotate(45); myTransform.shear(0.5, 0); QTransform invertedTransform = myTransform.inverted();
QTransform myTransform; myTransform.rotate(45); myTransform.shear(0.5, 0); QTransform invertedTransform = myTransform.inverted(); QPointF point(1, 0); QPointF transformedPoint = myTransform.map(point); QPointF invertedPoint = invertedTransform.map(transformedPoint);This example first creates a QTransform object "myTransform" as in the previous example. Two points are then defined - "point" starts off at (1, 0) and "transformedPoint" applies the transformations in "myTransform" to "point". Finally, "invertedPoint" applies the inverted matrix to "transformedPoint" to get back to the original coordinates. The Qt framework is the package library for QTransform and its associated functions.