Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105953

QtQuick: WebEngineView resize regression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.4.1, 6.5.0 Beta1
    • 6.4.0 Beta3
    • WebEngine
    • None
    • All
    • e995556338 (qt/qtwebengine/dev) b5de3ad2ab (qt/qtwebengine/6.4) b5de3ad2ab (qt/tqtc-qtwebengine/6.4) e995556338 (qt/tqtc-qtwebengine/dev) b5de3ad2ab (qt/tqtc-qtwebengine/6.4.1)

      This example shows a regression in 6.4. The initial url (Qt WebSite) displays correctly, window resizing works. On changing the url (click the button), the display area of the WebEngineView is no longer resized (the item itself is resized). Looks like this is a regression because in 6.3.1 this works.

      A complete example project is attached (selection of QSGRendererInterface::MetalRhi in main.cpp does not make any difference regarding the resize problem).

      import QtQuick
      import QtQuick.Layouts
      import QtQuick.Controls
      import QtWebEngine
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          ColumnLayout {
              anchors.fill: parent
      
              RowLayout {
                  Text {
                      text: "Initial URL should resize correctly"
                  }
                  Button {
                      text: "Goto other URL (resize stops working)"
                      onClicked: web.url = "https://www.google.de"
                  }
              }
      
              WebEngineView {
                  id: web
                  Layout.fillHeight: true
                  Layout.fillWidth: true
                  url: "https://www.qt.io"
              }
          }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mnegyokru Martin Negyokru
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes