Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Webview not scrollable using QtWebKit 1.0

Webview not scrollable using QtWebKit 1.0

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 663 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.
  • M Offline
    M Offline
    mils
    wrote on last edited by
    #1

    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
        }
      }
    }@
    
    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