Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.0.0, 5.1.0 , 5.2.0, 5.3.1
-
None
Description
QWidget::createWindowContainer() can create a QWindowContainer object which embed a native window to an existing QWidget.
However, according to the design, the native WId of the parent widget may be changed at runtime. So when this happen, QWindowContainer should reparent the embedded native window automatically otherwise things will be broken.
This does not work with the XCB backend which uses XEMBED.
Please note that it's not possible for application developers to handle this ourselves since when QEvent::WinIdChange happen, the old window is already destroyed and we have no chance to unparent the embedded window before that.
Attachments
Issue Links
- relates to
-
QTBUG-40681 [REG 4->5] When using multiple monitors and one monitor is disconnected causing the window to move then winId() is not updated
- Closed