View Single Post
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#2
Code:
image =imageBackups.at(imageBackups.size()-1);
QPainter painter(&image); <--- HUH?
painter.drawImage(QPoint(0,0),imageBackups.at(imageBackups.size()-1));
What the ...? You take an image from the cache and paint it on itself? Why don't you just use QUndoStack and set the limit to 10?