2012/9/21 Alessandro Portale <[email protected]>
> On Fri, Sep 21, 2012 at 12:01 PM, Fred Fung <[email protected]> wrote:
> > Hi all,
> >
> > I want to know how to turn off caching mechanism of Qt?
> > Including font cache, pixmap cache and so on.
> >
> > Or, how can I set the limit of memory cache?
>
> The Pixmap cache can be specified via API at application run-time:
> http://doc.qt.digia.com/latest/qpixmapcache.html#setCacheLimit
>
> The font cache is afaik hard coded and different from system to
> system, I don't think that it can actively be adjusted easily. To keep
> font cache usage low, it helps to use less different font variations
> (fontface/size/style).
>
> Hope that helped,
> Alessandro
>
--
Dear Alessandro,
Thank you very much for your help.
I had adjusted Qt4.8.3 as you suggest, but the issue is not resolved...
The problem I encountered makes me confused.
My application is a simply QtWebkit based browser and it running on
MIPS embedded linux platform without SWAP.
But when I visited http://www.youtube.com/leanback#search?q=a and looked
over the contents of searching result one by one, the system memory usage
kept increasing.
I think it could be Qt related problem because I has disabled all the
cache in Webkit by QWebSettings's API.
For more information :
https://bugreports.qt-project.org/browse/QTWEBKIT-346
Regards,
FF
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development