开发者

How can i enable cache on qt webkit

I'm using webkit on qt platform, and I need to enable the cache function to use html5 apps that uses cache.manifest. But, I'm using the OfflineWebApplicationCacheEnabled method, but this is开发者_开发百科 not enough, its not working. Help me please.


You also need to set the path using QWebSettings::setOfflineWebApplicationCachePath (make sure the path exists, if necessary use some sensible subdirectory from QDesktopServices::storageLocation) and also the cache maximum size via QWebSettings::setOfflineWebApplicationCacheQuota.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜