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. QtWebkit, different behavior between PC and N950

QtWebkit, different behavior between PC and N950

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 2.1k 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.
  • J Offline
    J Offline
    jsmanrique
    wrote on 5 Sept 2011, 15:39 last edited by
    #1

    Hi,

    I am running the following qml in my laptop and in my N950. In the laptop, it works as expected. In the N950, I get a white screen.

    I have tried loading the URL site in the N950 browser, and it works as expected... So I am trying to guess what it's going wrong.

    Thank you very much and best regards

    @import QtQuick 1.1
    import QtWebKit 1.0
    import com.nokia.meego 1.0

    Window {
    id:rootWindow

    WebView {
    id: webView
    anchors.fill: parent
    width: rootWindow.width
    height: rootWindow.height
    settings.javascriptEnabled: true
    settings.localStorageDatabaseEnabled: true
    settings.offlineStorageDatabaseEnabled: true
    settings.offlineWebApplicationCacheEnabled: true
    url: 'http://www.carefy.com/AHS-Assistant/'
    }
    }@

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on 5 Sept 2011, 17:16 last edited by
      #2

      -Closed. Duplicated of "this thread":http://developer.qt.nokia.com/forums/viewthread/9428/.-

      Instead of closing, I deleted the duplicate; Andre

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jsmanrique
        wrote on 12 Sept 2011, 16:12 last edited by
        #3

        I think it is related with HTML5 local storage (http://diveintohtml5.org/storage.html) support ...

        Anyone could provide any tip about how to activate it in QML?

        In PySide it would be something like this:

        @mSettings = mWebView.settings()
        mSettings.setAttribute(QWebSettings.LocalStorageEnabled, True)
        mSettings.setAttribute(QWebSettings.OfflineStorageDatabaseEnabled, True)
        mSettings.setAttribute(QWebSettings.OfflineWebApplicationCacheEnabled, True)
        mSettings.enablePersistentStorage(path=sys.path[0])@

        1 Reply Last reply
        0

        3/3

        12 Sept 2011, 16:12

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved