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)
Forum Updated to NodeBB v4.3 + New Features

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 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
    ucomesdag
    wrote on 31 Jul 2011, 02:05 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 31 Jul 2011, 23:48 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 3 Aug 2011, 18:02 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 2 Nov 2011, 01:39 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 3 Nov 2011, 00:36 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