Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.11.1, 5.11.2, 5.11.3, 5.12.0, 5.12.1
-
-
ccd3bf0871b81dfc09bb469b161f32dfb47ee53e (qt/qtbase/5.13) 40b33adb7ab5d0295fa95cf66a8d3f59c8d11739 (qt/qtbase/5.12), 1308f7e0b (dev), 2332a9c67 (6.7)
Description
A custom widget derived from QGLWidget fails to be drawn if it is contained in a dialog that is closed and then reopened.
If the widget is derived from QOpenGLWidget it works properly, and with 5.11.0 and previous versions of Qt it works properly.
First version we checked the bug exists is Qt 5.11.1
I attach a minimum case to check the bug:
Compile and launch, it will create a mainwindow with a pushbutton "Show". Steps to reproduce
- Push Show
- A dialog will open with only a QGLWidget that draws a cross
- close the dialog
- push show again
- Expected -> same cross drawn ; Obtained -> Blank dialog
Notice that every time the QGLWidget widget is called it should write to console and in sucessive calls it does not.