Hi,

I've tried this code in the constructor of a simple program.
Qt Code:
  1. QImage qImage("a.bmp");
  2. QPainter qPainter(&qImage);
  3. qPainter.setBrush(Qt::NoBrush);
  4. qPainter.setPen(Qt::red);
  5. qPainter.drawRect(150,150,50,50);
  6. bool bEnd = qPainter.end();
  7. qImage.save("b.bmp");
To copy to clipboard, switch view to plain text mode 

With this I'll get the image "b.bmp" that is the same as "a.bmp" but with a red rectangle painted on position (150px,150px) with a widht and height of 50px.
This don't work as "b.bmp" is identical as "a.bmp"

Thanks,