class QRenderSurfaceSelector#

Provides a way of specifying the render surface. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector

Synopsis#

Properties#

Methods#

Slots#

Signals#

Note

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

Detailed Description#

The QRenderSurfaceSelector can be used to select the surface, where Qt3D renders the content. The surface can either be window surface or offscreen surface. The externalRenderTargetSize is used to specify the actual size of the surface when offscreen surface is used.

When DPI scaling is used by the system, the logical surface size, which is used by mouse events, and the actual ‘physical’ size of the surface can differ. The surfacePixelRatio is the factor to convert the logical size to the physical size.

See also

QWindowQOffscreenSurfaceQSurface

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property externalRenderTargetSizeᅟ: QSize#

Holds the size of the external render target.

Access functions:
property surfaceᅟ: QObject#

Holds the surface

Access functions:
property surfacePixelRatioᅟ: float#

Holds the surfacePixelRatio of the surface.

Access functions:
__init__([parent=None])#
Parameters:

parentQNode

Constructs QRenderSurfaceSelector with given parent.

externalRenderTargetSize()#
Return type:

QSize

See also

setExternalRenderTargetSize()

Getter of property externalRenderTargetSizeᅟ .

externalRenderTargetSizeChanged(size)#
Parameters:

sizeQSize

Notification signal of property externalRenderTargetSizeᅟ .

setExternalRenderTargetSize(size)#
Parameters:

sizeQSize

Sets render target size if different than underlying surface size. Tells picking the correct size.

See also

externalRenderTargetSize()

Setter of property externalRenderTargetSizeᅟ .

setSurface(surfaceObject)#
Parameters:

surfaceObjectQObject

Sets surfaceObject.

See also

surface()

Setter of property surfaceᅟ .

setSurfacePixelRatio(ratio)#
Parameters:

ratio – float

See also

surfacePixelRatio()

Setter of property surfacePixelRatioᅟ .

surface()#
Return type:

QObject

See also

setSurface()

Getter of property surfaceᅟ .

surfaceChanged(surface)#
Parameters:

surfaceQObject

Notification signal of property surfaceᅟ .

surfacePixelRatio()#
Return type:

float

See also

setSurfacePixelRatio()

Getter of property surfacePixelRatioᅟ .

surfacePixelRatioChanged(ratio)#
Parameters:

ratio – float

Notification signal of property surfacePixelRatioᅟ .