本页内容

RenderSurfaceSelector QML Type

提供了一种指定渲染表面的方法。更多内容...

Import Statement: import Qt3D.Render 2.12
In C++: QRenderSurfaceSelector
Inherits:

FrameGraphNode

Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

RenderSurfaceSelector 可用于选择 Qt3D 渲染内容的渲染面。该渲染面可以是窗口渲染面,也可以是离屏渲染面。当使用离屏渲染面时,externalRenderTargetSize 用于指定渲染目标的实际尺寸。

当系统启用 DPI 缩放时,用于处理鼠标事件的逻辑表面尺寸与表面的实际“物理”尺寸可能会存在差异。surfacePixelRatio 是将逻辑尺寸转换为物理尺寸的转换因子。

属性文档

externalRenderTargetSize : size

存储外部渲染目标的大小。

surface : QSurface

附着在表面上。

surfacePixelRatio : real

保存该表面的 surfacePixelRatio 值。

© 2026 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.