Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved QWebPage LocalStorage Problem.

    General and Desktop
    qwebpage localstorage
    1
    1
    569
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      ScottHong last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post