本页内容

QWaylandXdgDecorationManagerV1 Class

提供了一个用于协商服务器端和客户端窗口装饰的扩展。更多内容...

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

属性

公共函数

QWaylandXdgDecorationManagerV1()
QWaylandXdgToplevel::DecorationMode preferredMode() const
void setPreferredMode(QWaylandXdgToplevel::DecorationMode preferredMode)

重新实现的公共函数

virtual void initialize() override

信号

静态公共成员

const struct wl_interface *interface()

详细说明

QWaylandXdgDecorationManagerV1 扩展为合成器提供了一种声明支持服务器端窗口装饰的方式,同时也允许 xdg-shell 客户端表明其更倾向于客户端还是服务器端装饰。

QWaylandXdgDecorationManagerV1 对应于 Wayland 接口zxdg_decoration_manager_v1 。

另请参阅 QWaylandXdgToplevel::decorationMode 。

属性文档

preferredMode : QWaylandXdgToplevel::DecorationMode

该属性存储合成器首选的装饰模式。

对于未指定偏好服务器端或客户端装饰方式的客户端,将使用此模式。

访问函数:

QWaylandXdgToplevel::DecorationMode preferredMode() const
void setPreferredMode(QWaylandXdgToplevel::DecorationMode preferredMode)

通知器信号:

void preferredModeChanged()

成员函数文档

[explicit] QWaylandXdgDecorationManagerV1::QWaylandXdgDecorationManagerV1()

创建一个 QWaylandXdgDecorationManagerV1 对象。

[override virtual] void QWaylandXdgDecorationManagerV1::initialize()

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

初始化该扩展。

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

返回QWaylandXdgDecorationManagerV1 的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.