Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.5, 6.0.3, 6.1.2, 6.3
-
-
51300566ffe2ece2455e1d0479a556c5dbb3bb8e (qt/tqtc-qtbase/dev)
Description
This is very similar case to QTBUG-79012 yet it seems different as the sample project in cannot be reproduced in Qt5.15.5 while this can. QTBUG-79012
In QDialog, if you call winId() and close the dialog, the contents of the dialog are not properly displayed when re-opened.
How to reproduce
1. Use QTBUG-96286.zip
2. Click File -> Test
3. Press "winId" button -> A message dialog appears
4. Press OK to close the message dialog
5. Press "x" to close the dialog
6. Re-open the dialog from File -> Test
Actual result :
The re-opened dialog is somehow in a different size (see screenshot ) and
when expanding the dialog by dragging, it looses its contents.
Known issue
- Not reproducible on 5.9.8 just like
QTBUG-79012 - This problem does not occur when using QWidget::hide()
- Workaround : Deleting and recreating the instance
Attachments
Issue Links
- duplicates
-
QTBUG-71519 Inconsistent handling of "close" w/QWindows
- Closed
-
QTBUG-79012 [regression 5.9.8 - > 5.11.x] QWidget loosing content when using winId() in embedded QWidget
- Closed
- relates to
-
QTBUG-83756 Reopening a maximized Dialog is broken
- Closed