Details
Description
Rendering is broken (nothing is painted) after reparenting WebEngineView to another window. A number of Qt warnings are also printed in the debug output, e.g:
Compositor returned null texture
Code sample:
import QtQuick import QtQuick.Controls import QtWebEngine Window { id: mainWindow width: 300 height: 300 title: 'Main ' visible: true WebEngineView { id: webView anchors.fill: parent url: 'https://www.qt.io/blog' } Window { id: childWindow width: mainWindow.width height: mainWindow.height x: mainWindow.x + mainWindow.width y: mainWindow.y title: 'Child' visible: true } Button { z: 1000 text: (webView.parent === mainWindow.contentItem) ? 'To Child' : 'To Main' onClicked: { if (webView.parent === mainWindow.contentItem) webView.parent = childWindow.contentItem else webView.parent = mainWindow.contentItem } } }
Steps to reproduce:
1. Click "To Child/To Main" button several times
2. Observe the window content
Attachments
Issue Links
- relates to
-
QTBUG-129153 Sporadic crash on NativeSkiaOutputDevice::BeginPaint()
-
- Closed
-
For Gerrit Dashboard: QTBUG-131304 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
608574,2 | Fix for broken rendering when reparenting view | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
609819,2 | Fix for broken rendering when reparenting view | 6.8 | qt/qtwebengine | Status: MERGED | +2 | 0 |