XdgDecorationManagerV1 QML Type

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

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

속성

상세 설명

XdgDecorationManagerV1 확장은 컴포저가 서버 측 창 장식을 지원하고, xdg-셸 클라이언트가 클라이언트 측 또는 서버 측 장식을 선호하는지 통신할 수 있는 방법을 제공합니다.

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 : string

이 프로퍼티에는 컴포저가 선호하는 데코레이션 모드가 저장됩니다.

서버 측 또는 클라이언트 측 데코레이션에 대한 기본 설정을 지정하지 않은 클라이언트에 사용되는 모드입니다.


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