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:
...
...
...
painter.begin(printer);
image.load(...);
painter.drawImage(...,image);
painter.end();
QPrinter *printer = new Printer();
...
...
...
QPainter painter;
painter.begin(printer);
QImage image;
image.load(...);
painter.drawImage(...,image);
painter.end();
To copy to clipboard, switch view to plain text mode
Bookmarks