开发者

How can i enable cache on qt webkit

开发者 https://www.devze.com 2023-03-10 10:37 出处:网络
I\'m using webkit on qt platform, and I need to enable the cache function to use html5 apps that uses cache.manifest.

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

精彩评论

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