
Originally Posted by
tbscope
Can you please respond in full sentences and with context?
Otherwise it will be very hard for people to understand you.
What didn't work either?
Why do you think anything is missing?
What does compiling Qt with the -debug flag have to do with this?
I don't know where this path comes from, but most likely, you can not write to it from a normal user account.
Sorry for that.
I login as root,so have the privillege to write the path /root/offline,and after I set this
in BrowserApplication::loadSettings()
defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled,true); defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled,true);
defaultSettings->setAttribute(QWebSettings::LocalStorageEnabled,true);
defaultSettings->setOfflineStoragePath("/home/offline");
defaultSettings->setOfflineWebApplicationCachePath("/home/offline");
defaultSettings->setLocalStoragePath("/home/offline");
defaultSettings->setOfflineStorageDefaultQuota(5*1024*1024);
defaultSettings->setOfflineWebApplicationCacheQuota(5*1024*1024);
defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled,true); defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled,true);
defaultSettings->setAttribute(QWebSettings::LocalStorageEnabled,true);
defaultSettings->setOfflineStoragePath("/home/offline");
defaultSettings->setOfflineWebApplicationCachePath("/home/offline");
defaultSettings->setLocalStoragePath("/home/offline");
defaultSettings->setOfflineStorageDefaultQuota(5*1024*1024);
defaultSettings->setOfflineWebApplicationCacheQuota(5*1024*1024);
To copy to clipboard, switch view to plain text mode
There is a db file named ApplicationCache.db in the dir /home/offline.that may mean offlineWebApplicationCache works,am I right?
I setup apache tomcat6.0,and use the chrome to test html5 cache,it's ok.According to the QT Reference Document QWebSettings Class,it should also support.
I want to know whether what I've done is right?Thank you.
Bookmarks