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

Rendering of second QML WebEngineView in same window is buggy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.2
    • WebEngine
    • None
    • Linux/X11

    Description

      When displaying two WebEngineView in the same window (typically, a website and dev tools), the second one is badly rendered after resizing. It looks pixelated, as if its internal buffer's size didn't match its display size.

      Here is a minimal example:

      #include <QtWebEngineQuick/qtwebenginequickglobal.h>
      #include <QApplication>
      #include <QQmlApplicationEngine>
      
      
      int main(int argc, char *argv[])
      {
          QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
          QtWebEngineQuick::initialize();
      
          QApplication app(argc, argv);
          QQmlApplicationEngine engine;
          engine.load("MainWindow.qml");
      
          return app.exec();
      } 
      import QtQuick
      import QtQuick.Window
      import QtWebEngine
      
      Window {
          height: 500
          width: 1000
          visible: true
          
          WebEngineView {
              width: parent.width
              height: parent.height / 2
              url: "https://www.wikipedia.com"
          }
          
          WebEngineView {
              width: parent.width
              height: parent.height / 2
              y: parent.height / 2
              url: "https://www.wikipedia.com"
          }
      }

      Additionnally, I also tried in the quicknanobrowser example: if you just change the devtool view's height to be dynamic (for example parent.height / 2) instead of a fixed 400 (BrowserWindow.qml, line 625), you get the same bug after resizing the browser window.

      This happens on Linux/X11, on Linux/Wayland (but less noticeable) but works fine on Windows.

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            laurentgom Laurent
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes