QQuickRenderTarget

The QQuickRenderTarget class provides an opaque container for native graphics resources specifying a render target, and associated metadata. More

Inheritance diagram of PySide6.QtQuick.QQuickRenderTarget

Synopsis

Functions

Static functions

Detailed Description

class PySide6.QtQuick.QQuickRenderTarget

PySide6.QtQuick.QQuickRenderTarget(other)

Parameters

otherPySide6.QtQuick.QQuickRenderTarget

Constructs a default QQuickRenderTarget that does not reference any native objects.

static PySide6.QtQuick.QQuickRenderTarget.fromOpenGLTexture(textureId, pixelSize[, sampleCount=1])
Parameters
Return type

PySide6.QtQuick.QQuickRenderTarget

Returns a new QQuickRenderTarget referencing an OpenGL texture object specified by textureId.

pixelSize specifies the size of the image, in pixels. Currently only 2D textures are supported.

sampleCount specific the number of samples. 0 or 1 means no multisampling, while a value like 4 or 8 states that the native object is a multisample texture.

Note

the resulting QQuickRenderTarget does not own any native resources, it merely contains references and the associated metadata of the size and sample count. It is the caller’s responsibility to ensure that the native resource exists as long as necessary.

PySide6.QtQuick.QQuickRenderTarget.isNull()
Return type

bool

Returns true if this QQuickRenderTarget is default constructed, referencing no native objects.

PySide6.QtQuick.QQuickRenderTarget.__ne__(rhs)
Parameters

rhsPySide6.QtQuick.QQuickRenderTarget

Return type

bool

PySide6.QtQuick.QQuickRenderTarget.__eq__(rhs)
Parameters

rhsPySide6.QtQuick.QQuickRenderTarget

Return type

bool