[Development] QImage::transformed returns shallow copy for QTransform::TxNone matrix type.

Tomasz Olszak olszak.tomasz at gmail.com
Mon Jul 11 11:38:06 CEST 2016


Hello,

QImage:: transformed(const QTransform &matrix, Qt::TransformationMode mode
= Qt::FastTransformation) docs:

"Returns a copy of the image that is transformed using the given
transformation matrix and transformation mode."

But if matrix.type() == QTransform::TxNone then shallow instead of deep
copy is returned.

I'm happy to submit a fix but I don't know what is expected behaviour?
Should implementation follow docs or docs or docs follow implementation
here?

T.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160711/2071d96d/attachment.html>


More information about the Development mailing list