XdgDecorationManagerV1 QML Type
サーバ側とクライアント側のウィンドウ装飾をネゴシエートするための拡張機能を提供します。詳細...
Import Statement: | import QtWayland.Compositor.XdgShell |
In C++: | QWaylandXdgDecorationManagerV1 |
プロパティ
- preferredMode : string
詳しい説明
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 とServer Side Decoration Compositorも参照してください 。
プロパティ Documentation
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.