Viewport QML Type

Qt3D 场景中的视口。更多

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

FrameGraphNode

Status: Deprecated

属性

详细说明

场景的视口指定了 Qt3D 渲染表面的哪个部分。视口以外的区域不会被渲染。它还控制该视口中渲染的全局参数(如伽玛值)。

属性文档

gamma : real

指定视口的伽玛系数。默认值为 2.2,在大多数屏幕上都能获得合适的效果。


normalizedRect : rect

指定视口的归一化矩形,即相对于渲染表面大小的视口矩形。整个表面大小的视口默认设置为[0.0, 0.0, 1.0, 1.0]。


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