View Full Version : QImage

30th July 2010, 23:58

I am trying to do pixel manipulation. I have created an image object and set all its pixels to a certain qRgba colour. I used the following code to do so:

QImage image;
image = QImage(100, 100, QImage::Format_ARGB32);
image.fill(qRgba(0, 100, 100, 1));

How do I vizualize this image?

Thank you

31st July 2010, 06:28
There are many ways but the easiest would be to use a QLabel and set the image on it. (see setPixmap())