Re: Best way to display live raw RGB data

2014-03-09 Thread Lindsay Mathieson
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

Re: Best way to display live raw RGB data

2014-03-09 Thread Allan Sandfeld Jensen
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 =

Best way to display live raw RGB data

2014-03-08 Thread Lindsay Mathieson
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);