WaylandView QML Type

代表输出上的曲面视图。更多

Import Statement: import QtWayland.Compositor
In C++: QWaylandView

属性

详细说明

WaylandView 对应于在特定输出上呈现曲面,管理包含要呈现内容的缓冲区。您可以在同一个曲面上设置多个视图。

属性文档

allowDiscardFrontBuffer : bool

默认情况下,视图会锁定当前缓冲区,直到调用 advance() 为止。将此属性设置为 true 可让 Qt 在主视图不再使用缓冲区时释放缓冲区。

这可用于避免次视图以较低频率更新时会影响客户端程序的帧速率。


bufferLocked : bool

该属性用于保存视图的缓冲区当前是否已锁定。缓冲区锁定时,progress() 不会前进到下一个缓冲区,并返回false

默认值为false


output : WaylandOutput

该属性用于保存视图显示曲面的输出。


surface : WaylandSurface

此属性保存此WaylandView 查看的曲面。


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