[Interest] QIcon from ARGB32 data

Till Oliver Knoll till.oliver.knoll at gmail.com
Fri Jun 13 07:37:59 CEST 2014


Am 13.06.2014 um 07:33 schrieb Till Oliver Knoll <till.oliver.knoll at gmail.com>:

> Am 13.06.2014 um 05:58 schrieb Filip Piechocki <fpiechocki at gmail.com>:
> 
>> ...
>> 
>> QImage image(myByteArray.constData(), width, height, QImage::Format_ARGB32);
>> 
>> Note that the data has to live as long as QImage and all it's undetached copies.
> 
> I don't think that's the case: I am pretty sure that QImage makes a /copy/ from the passed QByteArray data - no?

Internet: erase my previous post, it never happened!

See here: 

http://qt-project.org/doc/qt-5/qimage.html#QImage-4

Sorry about that ;)

Cheers,
  Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140613/a3251d31/attachment.html>


More information about the Interest mailing list