Hi,

if I print a lot of QImages using QPrinter (with preview in QPrintPreviewDialog) the memory usage of my program increases a lot and after finishing printing the memory still isn't released.

Example:
Qt Code:
  1. QPrinter *printer = new Printer();
  2. ...
  3. ...
  4. ...
  5. QPainter painter;
  6. painter.begin(printer);
  7. QImage image;
  8. image.load(...);
  9. painter.drawImage(...,image);
  10. painter.end();
To copy to clipboard, switch view to plain text mode