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

Simon Hausmann Simon.Hausmann at qt.io
Mon Jul 11 16:07:01 CEST 2016


Detach() is marked with \internal - wouldn't want to suggest the use of private api;)


Simon


________________________________
From: Paul Olav Tvete
Sent: Jul 11, 2016 16:03
To: development at qt-project.org
Subject: Re: [Development] QImage::transformed returns shallow copy for QTransform::TxNone matrix type.

On mandag 11. juli 2016 12.54.58 CEST Simon Hausmann wrote:
> Instead of using copy(), why not call the non-const bits() function (and
> don't use the returned value). That will detach [...]

Instead of using bits(), why not call detach() directly? ;)

- Paul

_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160711/3925b2aa/attachment.html>


More information about the Development mailing list