XdgDecorationManagerV1 QML Type
サーバー側およびクライアント側のウィンドウ装飾のネゴシエーションを行うための拡張機能を提供します。詳細...
| Import Statement: | import QtWayland.Compositor.XdgShell |
| In C++: | QWaylandXdgDecorationManagerV1 |
プロパティ
- preferredMode : enumeration
詳細な説明
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.