Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.3, 6.6.0
-
None
-
-
006cbf658ea1f5986bbe1baafa7c146780320661
Description
When attempting to parent a QWebView widget to a QMainWindow that already has a QWindowContainer widget in its hierarchy, the application crashes when subsequently calling APIs like raise()/close() on the main window.
- Create a QMainWindow instance.
- Create a QWindowContainer widget and add it to the QMainWindow's layout.
- Create a QWebView widget.
- Parent the QWebView widget to the QMainWindow.
- Attempt to call APIs like {{raise() }}on the QMainWindow.
- Observe the crash.
Note:
- Crash can also be observed when calling any other APIs that involve accessing through the window container's QWindow handle (which was destroyed during the parenting step earlier)
- If this widget is dockable, then docking onto the QMainWindow via drop, drop action would also result in the crash.
- Crash was tested on MacOS but its likely to happen in other platforms as well.
- reproducer_app.zip
added to reproduce this.