Hi all,
I have a problem with QPainter. (Qt 5.4)

I have an Image in Format_ARGB32
I want to print a given Rgba (uint) value on to this using QPainter draw function and later fetch the value using image.pixel(x,y).
But the value painted and the value got from the pixel are different !!. What could be the problem.
KIndly help.

The sample code is like this.
..............
QImage image(100, 100, QImage::Format_ARGB32);
uint value = 0x44fa112b; //some value..
QPainter painter(&image);
painter.setCompositionMode(QPainter::CompositionMo de_Source);
QColor color(qRed(value), qGreen(value), qBlue(value), qAlpha(value));
QBrush brush(color);
painter.setBrush(brush);
painter.drawRect(0,0,image.width(), image.height());

uint value1 = image.pixel(50,50);


// value1 IS NOT EQUAL TO value. Why??