[PySide] QPixmap memory leak
Baz Walter
bazwal at gmail.com
Fri Jan 15 18:06:07 CET 2016
On 14/01/16 21:57, Hannu Tatein wrote:
> Hi Pyside Experts,
>
> I have written a GUI/Image viewer using Pyside. It works perfectly for my
> purpose except that as I browse through the images, the memory consumption
> of computer increases.
From the Qt docs[1]:
Note that QPixmaps are automatically added to the QPixmapCache when
loaded from a file
If you're worried about memory consumption, you can periodically call:
QPixmapCache.clear()
[1] http://doc.qt.io/qt-4.8/qpixmap.html#load
More information about the PySide
mailing list