[Qt-qml] How to set image cache limit and clear the cache?

Jonathan Zhong jonathan.zhong at panasonic.aero
Fri Jun 24 01:45:53 CEST 2011


Hi,

I have a QML application which loads more and more images. It appears 
that these images are stored in a cache (perhaps until a certain limit 
is reached?).

Is there a way in QML or Qt to set the cache limit and clear the cache? 
I have tried:

QPixmapCache::setCacheLimit(int);
QPixmapCache::clear();

However, it appears that QPixmapCache handles an additional cache, 
rather than the QML cache for the images.

Handling the image cache is critical for large QML applications.

Thanks in advance,

- jonathanz




Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Panasonic Avionics
Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission.




More information about the Qt-qml mailing list