Qt3DRender.QRenderSurfaceSelector¶
Provides a way of specifying the render surface. More…
Synopsis¶
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)
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
-
class
PySide2.Qt3DRender.Qt3DRender.
QRenderSurfaceSelector
([parent=None])¶ - param parent
QNode
Constructs
QRenderSurfaceSelector
with givenparent
.
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
externalRenderTargetSize
()¶ - Return type
QSize
See also
setExternalRenderTargetSize()
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
externalRenderTargetSizeChanged
(size)¶ - Parameters
size –
QSize
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
setExternalRenderTargetSize
(size)¶ - Parameters
size –
QSize
Sets render target
size
if different than underlying surface size. Tells picking the correct size.See also
externalRenderTargetSize()
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
setSurface
(surfaceObject)¶ - Parameters
surfaceObject –
QObject
Sets
surfaceObject
.See also
surface()
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
setSurfacePixelRatio
(ratio)¶ - Parameters
ratio –
float
See also
surfacePixelRatio()
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
surface
()¶ - Return type
QObject
See also
setSurface()
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
surfaceChanged
(surface)¶ - Parameters
surface –
QObject
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
surfacePixelRatio
()¶ - Return type
float
See also
setSurfacePixelRatio()
-
PySide2.Qt3DRender.Qt3DRender.QRenderSurfaceSelector.
surfacePixelRatioChanged
(ratio)¶ - Parameters
ratio –
float
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.