Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. HTML5 Local Storage not working in QtWebkit browser
Forum Updated to NodeBB v4.3 + New Features

HTML5 Local Storage not working in QtWebkit browser

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 3 Posters 7.6k Views 1 Watching
  • 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.
  • V Offline
    V Offline
    velmurugan
    wrote on 24 Oct 2011, 04:43 last edited by
    #1

    I am trying to run my jQuery Mobile application in nokia symbian
    devices. In my application ajax navigation and local storage are the
    mandatory part. According to jQuery mobile supported mobile list, the
    nokia symbian devices( symbian^1,symbian^3) not supporting ajax
    navigation. So i tried with meego 1.2 device i.e. nokia N9 using the Qt
    creator IDE. I used javascript to access local storage, but it is not
    working.

    I don't know how to enable the local storage in that IDE for my javascript.

    Then i searched in internet they give some step to enable it.
    ie. Set QWebSettings::LocalStorageEnabled to true. Which is present in
    QtWebKit. So i downloaded QtWebKit 2.2 which is the latest version and
    followed some step to build QtWebKit. After that i opened the
    C:\QtWebKit\Source\WebKit\qt\Api\QWebSettings.cpp and changed the
    LocalStorageEnabled to true.
    i.e.,

    @
    d->attributes.insert(QWebSettings::OfflineStorageDatabaseEnabled, true);

    d->attributes.insert(QWebSettings::OfflineWebApplicationCacheEnabled, true);
    d->attributes.insert(QWebSettings::LocalStorageEnabled, true);
    @

    but then also local storage is not working.

    Then in that QtWebKit, i opened QtWebkit browser and in Devlop
    menu i mark Enable local storage then i run my program but still the
    local storage is not working.

    Please help me to solve this issue...

    [EDIT: code formatting, please wrap in @-tags, Volker]

    1 Reply Last reply
    0
    • W Offline
      W Offline
      welemon
      wrote on 16 Jan 2012, 12:49 last edited by
      #2

      Please have a try with following APIs to provide the offline data path

      void setOfflineStorageDefaultQuota ( qint64 maximumSize )
      void setOfflineStoragePath ( const QString & path )
      void setOfflineWebApplicationCachePath ( const QString & path )
      void setOfflineWebApplicationCacheQuota ( qint64 maximumSize )

      1 Reply Last reply
      0
      • S Offline
        S Offline
        srav219
        wrote on 8 Mar 2013, 06:03 last edited by
        #3

        Hi,
        I am trying to enable application cache(offline webstorage) by just with the following api settings()->enablePersistentStorage("C:\dd\");
        With this api,I should see LocalStorage and ApplicationStorage folders in C:\dd .But I am seeing only LocalStorage folder in the C:\dd.

        I have even tried with the below code
        settings()->enablePersistentStorage("C:\dd\");
        settings()->setOfflineWebApplicationCachePath("C:\dd\AppCac he");
        I dont see any AppCache folder in C:\dd directory

        Can anyone help me what has gone wrong ...

        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