found this, but you already solved your problem just before I finished posting a response - would have deleted my post, but I'm not sure how to do that.
http://doc.trolltech.com/4.2/desktop-screenshot.html
found this, but you already solved your problem just before I finished posting a response - would have deleted my post, but I'm not sure how to do that.
http://doc.trolltech.com/4.2/desktop-screenshot.html
Last edited by schnitzel; 28th November 2009 at 00:31. Reason: updated contents
This example demonstrates how to resolve the problem perfectly.
Screenshot Example uses QResizeEvent instead of QPaintEvent (more efficient in my opinion if the different sizes are verified earlier and the widget belongs to MainWindow) but I think that it is a very good example for all those that want to look at some piece of code.
I would not erase the post after all.
Bookmarks