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

QtQuick: WebEngineView resize regression

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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)

    Description

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

      Attachments

        For Gerrit Dashboard: QTBUG-105953
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes