Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.5.2
-
None
-
-
98e0600c5 (dev), 08dd6dce6 (6.6), b027e03fe (6.5), eec936657 (dev), bd180bc53 (dev), 9e48ec981 (6.6), 1f3fac613 (6.6)
Description
I am using PySide6 to write an OpenGL application.
I need to run code when the QOpenGLWidget is being destroyed but while the QOpenGLContext is still valid.
The docs say that this is the purpose of QOpenGLContext.aboutToBeDestroyed however when the connected slot is run the QOpenGLContext is no longer valid.
I will attach a sample a minimal example.