Obsolete Members for QMatrix4x4

QMatrix4x4 类的以下成员已被废弃。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议不要在新代码中使用它们。

公共函数

(deprecated) void flipCoordinates()

相关的非成员

(deprecated in 6.1) QPoint operator*(const QMatrix4x4 &matrix, const QPoint &point)
(deprecated in 6.1) QPointF operator*(const QMatrix4x4 &matrix, const QPointF &point)
(deprecated in 6.1) QVector3D operator*(const QMatrix4x4 &matrix, const QVector3D &vector)
(deprecated in 6.1) QVector3D operator*(const QVector3D &vector, const QMatrix4x4 &matrix)

成员函数文档

[deprecated] void QMatrix4x4::flipCoordinates()

此函数已弃用。我们强烈建议不要在新代码中使用它。

通过将 y 和 z 坐标乘以 -1,在右手坐标系和左手坐标系之间切换。这通常用于创建左手正交视图,而不会像ortho() 那样缩放视口。

另请参阅 ortho()。

相关非成员

[deprecated in 6.1] QPoint operator*(const QMatrix4x4 &matrix, const QPoint &point)

自 6.1 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用QMatrix4x4::map()。

返回根据matrix 转换point 的结果,且矩阵在点之前应用。

[deprecated in 6.1] QPointF operator*(const QMatrix4x4 &matrix, const QPointF &point)

自 6.1 版本起,此函数已被废弃。我们强烈建议在新代码中不要使用它。

请改用QMatrix4x4::map()。

返回根据matrix 对point 进行变换后的结果,且矩阵在点之前应用。

[deprecated in 6.1] QVector3D operator*(const QMatrix4x4 &matrix, const QVector3D &vector)

自 6.1 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

请改用QMatrix4x4::map()。

返回根据matrix 对vector 进行变换后的结果,其中矩阵在向量之前应用。该向量作为射影点进行变换。

[deprecated in 6.1] QVector3D operator*(const QVector3D &vector, const QMatrix4x4 &matrix)

自 6.1 版本起,此函数已被废弃。我们强烈建议不要在新代码中使用它。

将QVector3D 转换为QVector4D ,其中w坐标设为1.0,然后进行乘法运算。

返回根据matrix 对vector 进行变换后的结果,其中矩阵在向量之后应用。该向量作为点进行变换。

© 2026 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.