QTransform transform; transform.rotate(45); qreal m12Value = transform.m12(); // should be 0.7071
QTransform transform; transform.scale(2, 3); qreal m12Value = transform.m12(); // should be 0This example creates a new transformation object and scales it by a factor of 2 in the x direction and 3 in the y direction. The value in the first row and second column of the transformation matrix should be 0 because there is no rotation. These examples use the Qt package library.