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
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
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.
Yes I mean drawing to a coordinate that is not on my screen. Thank you for your answer!
Bookmarks