Webview not scrollable using QtWebKit 1.0



  • Im trying to use a webview in my qml code, but the scrolling is not wrking with those two versions of QtQuick and QtWebKit.
    Also I tried the "Flickable Web View":http://qt-project.org/doc/qt-4.8/demos-declarative-webbrowser-qml-webbrowser-content-flickablewebview-qml.html, the scroll works fine but "fixed position content is not properly repositionned":https://bugs.webkit.org/show_bug.cgi?id=67664.

    What I have to do to fix those problems?

    P.S: When I use QtQuick 2.0 and QtWebKit 3.0, there is no problem, and for materials constraints I have to use the version 1.0 for both. And Im using the version 5.3 of QT.

    This is my qml class:

    @
    import QtQuick 1.0
    import QtWebKit 1.0
    
    
    Rectangle {
      id: container
      width: 700
      height: 300
    
      property string initialUrl: "http://bootstrap2modaldemo.scripting.com/"
    
      Rectangle {
        id: thumbnailContainer
        color: "black"
    
        anchors.bottom: container.bottom
        width: container.width
     }
    
     Rectangle {
        id: content
        width: container.width
        color: "black"
        anchors {
            top: container.top
            bottom: thumbnailContainer.top
        }
    
        WebView {
            id: webView
            anchors.fill: parent
            width: container.width
            opacity: 1
            url: container.initialUrl
        }
      }
    }@

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.