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. Modify settings in WebKit 3.0

Modify settings in WebKit 3.0

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.1k 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.
  • U Offline
    U Offline
    uranusjr
    wrote on last edited by
    #1

    I’m trying to use WebView in WebKit 3.0 in my Qt Quick 2 project. This loads:

    @
    ApplicationWindow {
    visible: true
    width: 300
    height: 200

    WebView {
        url: "http://www.google.com"
        anchors.fill: parent
    }
    

    }
    @

    But the webpage is terribly small:

    !http://d.pr/i/r6yY+( )!

    I would expect the webpage to keep its size, with WebView providing scrollbars to allow scrolling, like normal browsers do. Is there any way I can change this behaviour? I don’t see anything useful in the "WebKit 3.0 documentation":http://qt-project.org/doc/qt-5/qml-qtwebkit-webview.html

    Edit: I’m using Qt 5.3 provided by Homebrew on OS X.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      I feel it is behaving the right way. Logically programmer need to pass the size of the window in which we need to display the content. Otherwise it is taking default value as 160 to make it fit for mobility. It can be enhancement request to keep the size of the page.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • U Offline
        U Offline
        uranusjr
        wrote on last edited by
        #3

        The point is that there’s no way to let it set the scaling ratio other than the default one. QWebView, which is presumably based on the same thing, has a "zoomFactor":http://qt-project.org/doc/qt-5/qwebview.html#zoomFactor-prop property that we can use to change it. Nothing like that exists for WebView, at least not in the documentation.

        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