Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.4, 5.13.2
-
-
009abcd7b66738bece6cf354776dfb2ef401636b (qtbase/5.14, 10.12.2019, 5.14.1)
Description
If a QWidget is given a parent but it's also given the window flag Qt::Window and a child QWebEngineView, restoring the geometry of the said QWidget may result in:
5.13: ASSERT: "!region.isEmpty() || widgetTextures" in file kernel\qwidgetbackingstore.cpp, line 91 5.14: ASSERT failure in QWidget::mapTo(const QWidget *parent, const QPoint &pos): "parent must be in parent hierarchy", file kernel\qwidget.cpp, line 4064
Steps to reproduce:
- Run the attached project
- Click the button to create and show the child window QWidget with a webengineview
- Close the child window to save geometry
- Move the parent window to a different screen
- Click the button again to show the child window & restore it's geometry
Additional notes:
- Does not occur without child QWebEngineView
- Does not occur if the QWidget does not have a parent
Attachments
Issue Links
- is duplicated by
-
QTBUG-88629 QWidget::mapTo nullptr crash at win10 qt5.12.6
- Closed