本页内容

Viewport QML Type

Qt3D 场景中的视口。更多内容...

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

FrameGraphNode

Status: Deprecated

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

属性

详细说明

场景的视口指定了 Qt3D 渲染到渲染表面的哪个区域。视口外的区域将保持原样。它还控制着该视口内渲染的全局参数,例如伽马值。

属性文档

gamma : real

指定视口的伽马系数。默认值为 2.2,该值在大多数屏幕上应能显示正确结果。

normalizedRect : rect

指定视口的归一化矩形,即视口矩形是相对于渲染表面尺寸指定的。占满整个表面的视口指定为 [0.0, 0.0, 1.0, 1.0],这是默认设置。

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