Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.5.1
-
None
-
Lubuntu 16.04
Description
When an QOpenGLWidget inheriting from QOpenGLFunctions_3_0 is re-parented to NULL, it causes a crash when it is deleted.
I discovered that if widget contains a QOpenGLFunctions_3_0 object instead of inheriting from it, then there is no crash. Seems that deleting the inherited functions object is probably the real problem.
Chris Kawa provided a workaround which is to show the QOpenGLWidget before deleting with show() or showMinimized(). He said: 'After you switch parents you need to show the widget again so that it has a surface to re-create the context on'