Results 1 to 3 of 3

Thread: WebEngine set local storage path or programatically clear?

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: WebEngine set local storage path or programatically clear?

    All,

    I'm searching for documentation for Qt WebEngine which allows me to do one of the following:

    1) set the path for html5 LocalStorage
    2) gives me the name of the file/location where LocalStorage persists
    3) lets me clear it with a C++ function.

    Yes, I have found html file documentation for the LocalStorage.clear() function, but this is during development and stuff is getting left laying around. I just need to blast it for a clean start. Does anybody know where WebEngine local storage gets written?

    Thanks,


    Added after 7 minutes:


    Well, I cannot find documentation, but

    sudo find -iname *localstorage*

    turned up the following:

    ./home/developer/.local/share/myapp/QtWebEngine/Default/Local Storage/file__0.localstorage
    ./home/developer/.local/share/myapp/QtWebEngine/Default/Local Storage/file__0.localstorage-journal

    I am now continuing the tradition of posting my own answers

    That really should be in the documentation for the attribute which enables it.
    Last edited by RolandHughes; 2nd July 2015 at 22:59.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: WebEngine set local storage path or programatically clear?

    Quote Originally Posted by RolandHughes View Post
    That really should be in the documentation for the attribute which enables it.
    You mean document the sub path "QtWebEngine/Default/Local Storage" or that it uses the data location as the base path?

    In any case, you could submit the respective improvement

    Cheers,
    _

  3. #3
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: WebEngine set local storage path or programatically clear?

    Quote Originally Posted by anda_skoa View Post
    You mean document the sub path "QtWebEngine/Default/Local Storage" or that it uses the data location as the base path?

    In any case, you could submit the respective improvement

    Cheers,
    _
    Document the path it uses for storage and any environment variable which can set it. Under WebKit there were methods to set local storage path and name so an application could be certain to clean this up. If they hadn't used "Local Storage" in the name I wouldn't have been able to find it.

Similar Threads

  1. Any kind of Web Inspector for WebEngine?
    By RolandHughes in forum Qt Programming
    Replies: 3
    Last Post: 1st July 2015, 22:56
  2. QtWebEngine HTML5 local storage not working on deployment
    By RolandHughes in forum Qt Programming
    Replies: 2
    Last Post: 29th June 2015, 20:50
  3. Replies: 7
    Last Post: 27th March 2015, 15:43
  4. Accessing sql local storage from C++?
    By Koying in forum Qt Quick
    Replies: 1
    Last Post: 27th February 2014, 20:49
  5. local file path
    By sky in forum Newbie
    Replies: 3
    Last Post: 20th January 2011, 08:59

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.