This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class PySide6.QtQuick.QQuickGraphicsDevice#
Constructs a default
QQuickGraphicsDevice that does not reference any native objects.
- static PySide6.QtQuick.QQuickGraphicsDevice.fromOpenGLContext(context)#
Returns a new
QQuickGraphicsDevice referencing an existing OpenGL
This factory function is suitable for OpenGL.
It is up the caller to ensure that
context is going to be compatible and usable with the
QQuickWindow . Platform-specific mismatches in the associated
QSurfaceFormat , or threading issues due to attempting to use
context on multiple threads are up to the caller to avoid.
- Return type:
Returns true if this is a default constructed graphics device that does not reference any native objects.