Am 13.06.2014 um 07:33 schrieb Till Oliver Knoll <[email protected]>:

> Am 13.06.2014 um 05:58 schrieb Filip Piechocki <[email protected]>:
> 
>> ...
>> 
>> 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
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to