Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.2
-
None
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.