QRenderSurfaceSelector#
Provides a way of specifying the render surface. More…
Synopsis#
Properties#
Functions#
def
externalRenderTargetSize
()def
surface
()def
surfacePixelRatio
()
Slots#
def
setExternalRenderTargetSize
(size)def
setSurface
(surfaceObject)def
setSurfacePixelRatio
(ratio)
Signals#
def
externalRenderTargetSizeChanged
(size)def
surfaceChanged
(surface)def
surfacePixelRatioChanged
(ratio)
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
QWindow
QOffscreenSurface
QSurface
- class PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector([parent=None])#
- Parameters:
parent –
PySide6.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:
setExternalRenderTargetSize
(size)Signal
externalRenderTargetSizeChanged
(size)
- property PᅟySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surface: PySide6.QtCore.QObject#
Holds the surface
- Access functions:
surface
()setSurface
(surfaceObject)Signal
surfaceChanged
(surface)
- property PᅟySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatio: float#
Holds the surfacePixelRatio of the surface.
- Access functions:
setSurfacePixelRatio
(ratio)Signal
surfacePixelRatioChanged
(ratio)
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.externalRenderTargetSize()#
- Return type:
See also
Getter of property externalRenderTargetSize
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.externalRenderTargetSizeChanged(size)#
- Parameters:
size –
PySide6.QtCore.QSize
Notification signal of property externalRenderTargetSize
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setExternalRenderTargetSize(size)#
- Parameters:
size –
PySide6.QtCore.QSize
Sets render target size
if different than underlying surface size. Tells picking the correct size.
See also
Setter of property externalRenderTargetSize
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setSurface(surfaceObject)#
- Parameters:
surfaceObject –
PySide6.QtCore.QObject
Sets surfaceObject
.
See also
Setter of property surface
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.setSurfacePixelRatio(ratio)#
- Parameters:
ratio – float
See also
Setter of property surfacePixelRatio
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surface()#
- Return type:
See also
Getter of property surface
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfaceChanged(surface)#
- Parameters:
surface –
PySide6.QtCore.QObject
Notification signal of property surface
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatio()#
- Return type:
float
See also
Getter of property surfacePixelRatio
.
- PySide6.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.surfacePixelRatioChanged(ratio)#
- Parameters:
ratio – float
Notification signal of property surfacePixelRatio
.