View Full Version : drawing outside visible coordinates
mark465
14th May 2010, 20:47
To simplify my code I've been occasionally purposely drawing Pixmaps (Painter.drawPixmap) outside of visible coordinates. Is it possible to cause a memory leak this way or are there any drawbacks to this practice? I'm using PyQt4. Thank you. --Marc
tbscope
14th May 2010, 21:36
What do you mean with visible coordinates?
A coordinate that is not on your screen?
Or drawing beyond the width or height of your pixmap?
In the first case, that should not be a problem except that it can slow down your program if the painting takes a while. Then it is better to draw just in time.
Classic example: huge listviews where all items get drawn when loading the list.
mark465
15th May 2010, 13:53
Yes I mean drawing to a coordinate that is not on my screen. Thank you for your answer!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.