QRenderSurfaceSelector

Provides a way of specifying the render surface. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector

Synopsis

Functions

Slots

Signals

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

QWindow QOffscreenSurface QSurface

class PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector([parent=None])

Constructs QRenderSurfaceSelector with given parent .

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.externalRenderTargetSize()
Return type:

PySide2.QtCore.QSize

Holds the size of the external render target.

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.externalRenderTargetSizeChanged(size)
Parameters:

sizePySide2.QtCore.QSize

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setExternalRenderTargetSize(size)
Parameters:

sizePySide2.QtCore.QSize

Holds the size of the external render target.

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setSurface(surfaceObject)
Parameters:

surfaceObjectPySide2.QtCore.QObject

Holds the surface

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setSurfacePixelRatio(ratio)
Parameters:

ratio – float

Holds the of the surface.

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surface()
Return type:

PySide2.QtCore.QObject

Holds the surface

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfaceChanged(surface)
Parameters:

surfacePySide2.QtCore.QObject

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatio()
Return type:

float

Holds the of the surface.

PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatioChanged(ratio)
Parameters:

ratio – float