Obsolete Members for QTransform

The following members of class QTransform are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) QTransform(const QMatrix &matrix)
(obsolete) qreal det() const
(obsolete) const QMatrix &toAffine() const

Member Function Documentation

QTransform::QTransform(const QMatrix &matrix)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Constructs a matrix that is a copy of the given matrix. Note that the m13, m23, and m33 elements are set to 0, 0, and 1 respectively.

qreal QTransform::det() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Returns the matrix's determinant. Use determinant() instead.

const QMatrix &QTransform::toAffine() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Returns the QTransform as an affine matrix.

Warning: If a perspective transformation has been specified, then the conversion will cause loss of data.

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.