Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Change localStorage cache location at runtime with WebEngineProfile.storageName?

Change localStorage cache location at runtime with WebEngineProfile.storageName?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 509 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.
  • G Offline
    G Offline
    golgobot 0
    wrote on last edited by
    #1

    I'm building an application where it is necessary to pre-start WebEngine instances and then load JS into them dynamically. Because I want each app to have its own localStorage, and because I don't know which app I'm going to load into which WebEngine instance, I have a requirement that localStorage needs to be changed at runtime.

    It seems like it would be as easy as changing the storageName property on that WebEngineView's WebEngineProfile, but that seems to have no effect on localStorage. I've tried creating totally new WebEngineProfiles. I've tried it with every option, but no matter what, WebEngine continues to store localStorage in its original location on disk.

    Is this even possible, and if not, how would I work around this?

    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