- class QRenderSurfaceSelector#
Provides a way of specifying the render surface. More…
Synopsis#
Properties#
Methods#
def
__init__()
def
surface()
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. TheexternalRenderTargetSize
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.Holds the size of the external render target.
- Access functions:
Holds the surface
- Access functions:
- property surfacePixelRatioᅟ: float#
Holds the surfacePixelRatio of the surface.
- Access functions:
- __init__([parent=None])#
- Parameters:
parent –
QNode
Constructs
QRenderSurfaceSelector
with givenparent
.Getter of property
externalRenderTargetSizeᅟ
.Notification signal of property
externalRenderTargetSizeᅟ
.Sets render target
size
if different than underlying surface size. Tells picking the correct size.See also
externalRenderTargetSize()
Setter of property
externalRenderTargetSizeᅟ
.Sets
surfaceObject
.See also
surface()
Setter of property
surfaceᅟ
.- setSurfacePixelRatio(ratio)#
- Parameters:
ratio – float
See also
surfacePixelRatio()
Setter of property
surfacePixelRatioᅟ
.Getter of property
surfaceᅟ
.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ᅟ
.