Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebPage LocalStorage Problem.
Qt 6.11 is out! See what's new in the release blog

QWebPage LocalStorage Problem.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwebpagelocalstorage
1 Posts 1 Posters 844 Views
  • 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 Offline
    S Offline
    ScottHong
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved