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 scaling on launch when using Qt Components (ToolBarLayout)
QtWS25 Last Chance

Webview not scaling on launch when using Qt Components (ToolBarLayout)

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

    Hi, I got some sort of issue with a webview that does not scale correctly when launching on the N950 and simmulator when using a ToolBarLayout. After rotating the device to landscape and back the webview scales correctly.

    The webview is placed with:
    @ anchors.top: parent.top
    anchors.bottom: parent.bottom
    anchors.left: parent.left
    anchors.right: parent.right@

    !http://img37.imageshack.us/img37/2572/20110730131730.png(Bug?)!

    Someone got a hint or should I report a bug?

    Write “Qt”, not “QT” (QuickTime).

    1 Reply Last reply
    0
    • U Offline
      U Offline
      ucomesdag
      wrote on last edited by
      #2

      Created a bug report "QTCOMPONENTS-935":https://bugreports.qt.nokia.com/browse/QTCOMPONENTS-935

      Write “Qt”, not “QT” (QuickTime).

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

        Not so nice work arround is adding this to the webview:
        @onLoadFinished: {
        rootWindow.inPortrait = !rootWindow.inPortrait;
        rootWindow.inPortrait = !rootWindow.inPortrait;
        }@
        rootWindow is the id of my PageStackWindow

        Write “Qt”, not “QT” (QuickTime).

        1 Reply Last reply
        0
        • U Offline
          U Offline
          ucomesdag
          wrote on last edited by
          #4

          Problem is back. I'm wondering if I'm doing something wrong, as it seems no one else has problems with Webview and ToolBarLayout.

          If someone wants to have a look here is a small example that reproduces it:
          "main.qml":http://pastebin.com/W0xywngh
          "MainPage.qml":http://pastebin.com/0DU6QfT1

          Write “Qt”, not “QT” (QuickTime).

          1 Reply Last reply
          0
          • U Offline
            U Offline
            ucomesdag
            wrote on last edited by
            #5

            Just to confirm, when hiding the toolbar the webview scales correctly. Still hoping someone has a workaround... anyone?

            Write “Qt”, not “QT” (QuickTime).

            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