이 페이지에서

XdgDecorationManagerV1 QML Type

서버 측 및 클라이언트 측 창 장식 협상을 위한 확장 기능을 제공합니다. 더 보기...

Import Statement: import QtWayland.Compositor.XdgShell
In C++: QWaylandXdgDecorationManagerV1

속성

상세 설명

XdgDecorationManagerV1 확장 기능은 컴포지터가 서버 측 창 장식 기능을 지원함을 알리고, xdg-shell 클라이언트가 클라이언트 측 장식이나 서버 측 장식 중 어느 쪽을 선호하는지 전달할 수 있는 방법을 제공합니다.

XdgDecorationManagerV1은 Wayland 인터페이스인 zxdg_decoration_manager_v1 에 해당합니다.

컴포지터에서 이 확장 기능의 기능을 제공하려면, XdgDecorationManagerV1 컴포넌트의 인스턴스를 생성하고 이를 컴포지터가 지원하는 확장 목록에 추가하십시오:

import QtWayland.Compositor

WaylandCompositor {
    // Xdg decoration manager assumes xdg-shell is being used
    XdgShell {
        onToplevelCreated: // ...
    }
    XdgDecorationManagerV1 {
        // Provide a hint to clients that support the extension they should use server-side
        // decorations.
        preferredMode: XdgToplevel.ServerSideDecoration
    }
}

QWaylandXdgToplevel::decorationMode 및 서버 측 장식 컴포지터도 참조하십시오 .

속성 문서

preferredMode : enumeration

이 속성은 컴포지터가 선호하는 데코레이션 모드를 저장합니다. 가능한 값은 다음과 같습니다:

상수설명
XdgToplevel.ClientSideDecoration클라이언트가 창 장식을 그려야 합니다(기본값).
XdgToplevel.ServerSideDecoration컴포지터가 창 장식을 그려야 합니다.

이 모드는 서버 측 또는 클라이언트 측 장식 중 어느 쪽을 선호하는지 명시하지 않은 클라이언트에 사용됩니다.

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