[Interest] QIcon from ARGB32 data
Till Oliver Knoll
till.oliver.knoll at gmail.com
Fri Jun 13 07:33:02 CEST 2014
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?
Cheers,
Oliver
More information about the Interest
mailing list