XdgDecorationManagerV1 QML Type

Bietet eine Erweiterung für die Aushandlung von server- und clientseitigen Fensterdekorationen. Mehr...

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

Eigenschaften

Detaillierte Beschreibung

Die XdgDecorationManagerV1-Erweiterung bietet eine Möglichkeit für einen Compositor, die Unterstützung für serverseitige Fensterdekorationen anzukündigen, und für xdg-shell-Clients, mitzuteilen, ob sie clientseitige oder serverseitige Dekorationen bevorzugen.

XdgDecorationManagerV1 entspricht der Wayland-Schnittstelle, zxdg_decoration_manager_v1.

Um die Funktionalität der Erweiterung in einem Compositor bereitzustellen, erstellen Sie eine Instanz der Komponente XdgDecorationManagerV1 und fügen Sie sie der Liste der vom Compositor unterstützten Erweiterungen hinzu:

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
    }
}

Siehe auch QWaylandXdgToplevel::decorationMode und Server Side Decoration Compositor.

Eigenschaft Dokumentation

preferredMode : string

Diese Eigenschaft enthält den Dekorationsmodus, den der Compositor bevorzugt.

Dies ist der Modus, der für Clients verwendet wird, die keine Präferenz für serverseitige oder clientseitige Dekorationen angeben.


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