On Sun, 9 Mar 2014 12:17:50 PM Allan Sandfeld Jensen wrote:
> If you can not guarantee the liveness of _data. You should use
> QPixmap::fromImage(img->copy()), otherwise you might end up with a QPixmap
> which addresses _data.
I have precise knowledge of the lifetime of the buffer.
Turns out i
On Sunday 09 March 2014, Lindsay Mathieson wrote:
> I have a raw image buffer in xRGB format, 4 bytes per pixel, no row
> padding. I’m unsure as to how to display it on screen – I played around
> with Qimage, QPixmap and QLabel, but only got blank screens for my efforts
> :(
>
> QImage *img =
I have a raw image buffer in xRGB format, 4 bytes per pixel, no row padding.
I’m unsure as to how to display it on screen – I played around with Qimage,
QPixmap and QLabel, but only got blank screens for my efforts :(
QImage *img = new QImage(_data, _width, _height, QImage::Format_RGB32);