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
_______________________________________________
PySide mailing list
PySide@qt-project.org
http://lists.qt-project.org/mailman/listinfo/pyside