[Qt-qml] How to set image cache limit and clear the cache?
michael.brasser at nokia.com
michael.brasser at nokia.com
Fri Jul 1 03:57:13 CEST 2011
Hi,
For reference, http://bugreports.qt.nokia.com/browse/QTBUG-12031 is the task tracking this (currently scheduled for QtQuick 2.0).
Regards,
Michael
On 24/06/2011, at 11:57 AM, ext Chris Craig wrote:
> You are out of luck unless you are willing to modify the Qt source. QML
> has its own pixmap cache, but it is private and the cache limit is
> hard-coded. Look at src/declarative/util/qdeclarativepixmapcache.cpp
> for details.
>
> Chris
>
>
> On 06/23/2011 07:45 PM, Jonathan Zhong wrote:
>> 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.
>>
>>
>> _______________________________________________
>> Qt-qml mailing list
>> Qt-qml at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
More information about the Qt-qml
mailing list