Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Set localStorage path in QWebEngineView

Set localStorage path in QWebEngineView

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 692 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.
  • insideeeI Offline
    insideeeI Offline
    insideee
    wrote on last edited by
    #1

    Im trying to set a localstorage path with no success.
    I can enable the localStorage with:

    self._web_view.settings().setAttribute(QWebEngineSettings.LocalStorageEnabled, True)
    

    But i cant find a way to set the storage path.

    JonBJ 1 Reply Last reply
    0
    • insideeeI insideee

      Im trying to set a localstorage path with no success.
      I can enable the localStorage with:

      self._web_view.settings().setAttribute(QWebEngineSettings.LocalStorageEnabled, True)
      

      But i cant find a way to set the storage path.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @insideee
      What makes you think you can/ought be able to "set a localstorage path"?

      QWebEngineSettings::LocalStorageEnabled 5 Enables support for the HTML 5 local storage feature. Enabled by default.

      I would not expect to be able to affect where HTML5 stores its local storage. I expect it to be opaque to me.

      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