QRenderSurfaceSelector#

Provides a way of specifying the render surface. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector

Synopsis#

Properties#

Functions#

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

class PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs QRenderSurfaceSelector with given parent.

Note

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

property PᅟySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.externalRenderTargetSize: PySide6.QtCore.QSize#

Holds the size of the external render target.

Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surface: PySide6.QtCore.QObject#

Holds the surface

Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatio: float#

Holds the surfacePixelRatio of the surface.

Access functions:
PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.externalRenderTargetSize()#
Return type:

PySide6.QtCore.QSize

Getter of property externalRenderTargetSize .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.externalRenderTargetSizeChanged(size)#
Parameters:

sizePySide6.QtCore.QSize

Notification signal of property externalRenderTargetSize .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setExternalRenderTargetSize(size)#
Parameters:

sizePySide6.QtCore.QSize

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

Setter of property externalRenderTargetSize .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setSurface(surfaceObject)#
Parameters:

surfaceObjectPySide6.QtCore.QObject

Sets surfaceObject.

See also

surface()

Setter of property surface .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setSurfacePixelRatio(ratio)#
Parameters:

ratio – float

Setter of property surfacePixelRatio .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surface()#
Return type:

PySide6.QtCore.QObject

See also

setSurface()

Getter of property surface .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfaceChanged(surface)#
Parameters:

surfacePySide6.QtCore.QObject

Notification signal of property surface .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatio()#
Return type:

float

Getter of property surfacePixelRatio .

PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatioChanged(ratio)#
Parameters:

ratio – float

Notification signal of property surfacePixelRatio .