QTransform is a class in the Qt framework's Core module that represents a 2D affine transformation matrix. The m13 property of QTransform is a value that provides the transformation matrix's third row and first column element.
Here are some code examples using QTransform's m13 property:
Example 1
QTransform transform; transform.setMatrix(1, 0, 0, 0, 1, 0, 0.5, 0.5, 1); // set transformation matrix qreal m13 = transform.m13(); // get m13 value // m13 = 0.5
This example creates a new QTransform object and sets its matrix using QTransform::setMatrix(). Then, it calls the m13() function to get the value of the m13 property.
This example applies both scaling and rotation transformations to a QTransform object using the scale() and rotate() functions. Then, it calls the m13() function to get the value of the m13 property.
The package library for QTransform is the Qt framework's Core module. It is part of the Qt API and can be accessed through the Qt libraries.
C++ (Cpp) QTransform::m13 - 30 examples found. These are the top rated real world C++ (Cpp) examples of QTransform::m13 extracted from open source projects. You can rate examples to help us improve the quality of examples.