- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
P2: Important
 - 
    6.5.3
 
- 
        eb4cb7192 (dev)
 
This is a regression since Qt 6.3.2.
If I create main window initially (with a raster surface by default) and later QWebEngineView is added into any layout, the main window is hidden for a short period of time. This happens only once: if I create the first QWebEngineView. The main window is not hidden anymore if other instances of QWebEngineView are created.
After some investigation I found that it happens when a widget with OpenGL surface is reparented into a main window with a raster surface. In this case the surface type changes and resources of the main window are destroyed and recreated.
The sample code is attached: webengine-bug.cpp![]()
- duplicates
 - 
                    
QTBUG-120544 Main window will be resized after set parent for QWebEngineView
-         
 - Reported
 
 -         
 
| For Gerrit Dashboard: QTBUG-121181 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 541664,33 | widgets: Use per-surface-format RHI support and compositor | dev | qt/qtbase | Status: MERGED | +2 | 0 | 
| 544021,9 | widgets: Use per-surface-format RHI support and compositor | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: DEFERRED | 0 | 0 |