Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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