I have a problem with `QPainter` on `QImage` in Qt 5.4.

The image has `Format_ARGB32`. I want to set a given RGBA value on pixels in the image using a `QPainter` draw function and later read the value back using `QImage::pixel`.

Yet the value painted and the value read back are different. What am I doing wrong?

Sample code:

```
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??

```