Results 1 to 3 of 3

Thread: QtWebEngine HTML5 local storage not working on deployment

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

    Default QtWebEngine HTML5 local storage not working on deployment

    All,

    Have a QtWebEngine based application which uses all local html and javascript files. When deploying this to a test environment the Web page comes up and is navigable, but, local storage doesn't appear to be working. Actually, I believe it is the webchannel stuff which isn't working.

    This is a self contained .deb which installs creating a user and is meant to bring everything along with it. While it is running on a desktop, there is no network connection, everything is inside.

    That said, if "everything" was inside the webchannel would be working. Does anyone have a link identifying what external pieces webchannel requires? There are only two oddities starting up on the target.

    [0629/132921:WARNING:resource_bundle.cc(286)] locale_file_path.empty()
    [0629/132921:WARNING:resource_bundle.cc(286)] locale_file_path.empty()

    Trust me, I've surfed for that. There are _thousands_ of posts flagging resource_bundle.cc throwing local_file_path.empty() errors at all kinds of lines and nothing offered as a solution. I am making the grand assumption when webchannel supporting files are identified and placed/pointed to, these will go away and life will be good.

    qwebchannel.js is deployed, but, maybe there is an environment variable I need to set? The files folder holds index.html but there is a linux folder under that where qwebchannel.js is....

    Perhaps I will continue my tradition of posting my own answer within an hour of posting a question...?

    Thanks,

  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: QtWebEngine HTML5 local storage not working on deployment

    Is local storage working if you use it in content without webchannel requirements?

    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: QtWebEngine HTML5 local storage not working on deployment

    @Anda,

    This is definitely webchannel not working. The simple test of a button click which connects to an exit slot is non-functional. There simply has to be one or more files missing from the deployment. I'm hoping someone has a complete list. There are a lot of half-baked lists floating around out there.

Similar Threads

  1. QtWebEngine is extremely slow
    By GimpMaster in forum Qt Programming
    Replies: 7
    Last Post: 19th June 2015, 06:26
  2. Replies: 7
    Last Post: 27th March 2015, 16:43
  3. html5 video tag not working on Windows
    By zorlette in forum Newbie
    Replies: 2
    Last Post: 5th June 2014, 09:43
  4. Accessing sql local storage from C++?
    By Koying in forum Qt Quick
    Replies: 1
    Last Post: 27th February 2014, 21:49
  5. Working with multiple local QDialogs
    By Momergil in forum Qt Programming
    Replies: 4
    Last Post: 1st April 2013, 23:35

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.