QWebPage LocalStorage Problem.



  • I found that different QWebPage instance share the same LocalStorage (in disk).

    no mater how I change the LocalStorage Path, QWebPages are always share the same LocalStorage data.

    Is it possible to make different QWebPage use individual LocalStorage, Thanks.

    webview->settings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
    webview->settings()->setLocalStoragePath("Path to /foo/bar/");
    OR
    m_webview->settings()->enablePersistentStorage("Path to /foo/bar/");

    Can set and enable LocalStorage, But Can not change it's path.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.