QWaylandXdgDecorationManagerV1 Class

为协商服务器端和客户端窗口装饰提供扩展。更多

Header: #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)

Notifier 信号:

void preferredModeChanged()

成员函数 文档

[explicit] QWaylandXdgDecorationManagerV1::QWaylandXdgDecorationManagerV1()

构造一个 QWaylandXdgDecorationManagerV1 对象。

[override virtual] void QWaylandXdgDecorationManagerV1::initialize()

重新实现:QWaylandCompositorExtension::initialize().

初始化扩展。

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

返回QWaylandXdgDecorationManagerV1 的 Wayland 界面。

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