QQuickGraphicsDevice#
The QQuickGraphicsDevice
class provides an opaque container for native graphics objects representing graphics devices or contexts. More…
Synopsis#
Functions#
def
isNull
()
Static functions#
def
fromOpenGLContext
(context)
Detailed Description#
See also
- class PySide6.QtQuick.QQuickGraphicsDevice#
PySide6.QtQuick.QQuickGraphicsDevice(other)
- Parameters
Constructs a default QQuickGraphicsDevice
that does not reference any native objects.
- static PySide6.QtQuick.QQuickGraphicsDevice.fromOpenGLContext(context)#
- Parameters
context –
PySide6.QtGui.QOpenGLContext
- Return type
Returns a new QQuickGraphicsDevice
referencing an existing OpenGL context
.
This factory function is suitable for OpenGL.
Note
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.
- PySide6.QtQuick.QQuickGraphicsDevice.isNull()#
- Return type
bool
Returns true if this is a default constructed graphics device that does not reference any native objects.