Add Python-specific note to QOpenGLContext::aboutToBeDestroyed() documentation
The signal is not received when emitted from the destructor. Fixes: PYSIDE-2460 Change-Id: Ic2273c5b9ef1f53bd58615b6982016e646aee326 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit 98e0600c5a317bec17740aa010a36589adc7eab4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 08dd6dce630ceb81f6021216437f01fdc40d120a)
This commit is contained in:
parent
d89363d83f
commit
b027e03fed
@ -451,6 +451,11 @@ void QOpenGLContext::destroy()
|
||||
|
||||
If you wish to make the context current in order to do clean-up, make sure
|
||||
to only connect to the signal using a direct connection.
|
||||
|
||||
\note In Qt for Python, this signal will not be received when emitted
|
||||
from the destructor of QOpenGLWidget or QOpenGLWindow due to the Python
|
||||
instance already being destroyed. We recommend doing cleanups
|
||||
in QWidget::hideEvent() instead.
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user