本页内容

QWaylandViewporter Class

提供了一个用于调整图像大小和裁剪的扩展程序。更多...

标题: #include <QWaylandViewporter>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
继承自: QWaylandCompositorExtensionTemplate

公共函数

QWaylandViewporter()
QWaylandViewporter(QWaylandCompositor *compositor)

重新实现的公共函数

virtual void initialize() override

静态公共成员

const struct wl_interface *interface()

详细说明

QWaylandViewporter 扩展为客户端提供了调整表面内容大小和裁剪的方法。

QWaylandViewporter 对应于 Wayland 接口wp_viewporter 。

成员函数文档

[explicit] QWaylandViewporter::QWaylandViewporter()

创建一个 QWaylandViewporter 对象。

[explicit] QWaylandViewporter::QWaylandViewporter(QWaylandCompositor *compositor)

根据提供的compositor ,创建一个QWaylandViewporter对象。

[override virtual] void QWaylandViewporter::initialize()

重新实现了:QWaylandCompositorExtension::initialize()。

初始化该扩展。

[static] const struct wl_interface *QWaylandViewporter::interface()

返回QWaylandViewporter 的Wayland接口。

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