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.
Attachments
For Gerrit Dashboard: PYSIDE-2460 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
503364,13 | Examples: Split the hellogl2 example | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
503383,11 | Add multiwindow functionality from the C++ example | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
503533,4 | Add Python-specific note to QOpenGLContext::aboutToBeDestroyed() documentation | dev | qt/qtbase | Status: MERGED | +2 | 0 |
504435,2 | Add Python-specific note to QOpenGLContext::aboutToBeDestroyed() documentation | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
504637,2 | Add Python-specific note to QOpenGLContext::aboutToBeDestroyed() documentation | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
505223,2 | Examples: Split the hellogl2 example | 6.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
505224,2 | Add multiwindow functionality from the C++ example | 6.6 | pyside/pyside-setup | Status: MERGED | +2 | 0 |