WlShell QML Type
デスクトップスタイルのユーザーインターフェース用の拡張機能を提供します。詳細...
| Import Statement: | import QtWayland.Compositor.WlShell |
| In C++: | QWaylandWlShell |
シグナル
- void wlShellSurfaceCreated(WlShellSurface shellSurface)
- void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
詳細な説明
WlShell 拡張機能は、ShellSurface を通常の Wayland サーフェスに関連付ける手段を提供します。クライアントは、シェルサーフェスインターフェースを使用して、サーフェスのサイズ変更や移動などを要求できます。
WlShellは、Waylandインターフェースwl_shell に対応しています。
コンポジターでシェル拡張機能の機能を提供するには、WlShell コンポーネントのインスタンスを作成し、それをコンポジターがサポートする拡張機能のリストに追加します:
import QtWayland.Compositor.WlShell
WaylandCompositor {
WlShell {
// ...
}
}Signal ドキュメント
void wlShellSurfaceCreated(WlShellSurface shellSurface)
このシグナルは、クライアントがwl_shell_surface を作成したときに発せられます。一般的な使用例としては、このシグナルのハンドラに、QtQuick のシーン内でshellSurface を表示するために、ShellSurfaceItem またはWaylandQuickItem をインスタンス化させる場合があります。
注: 対応するハンドラは onWlShellSurfaceCreated です。
void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
このシグナルは、クライアントが `wl_shell_surface ` を `surface` に関連付けるよう要求した際に発せられます。このシグナルのハンドラは、`resource ` 用のシェルサーフェスを作成し、シグナル発火の範囲内でそれを初期化することができます。そうでない場合、WlShellSurface が自動的に作成されます。
注: 対応するハンドラは onWlShellSurfaceRequested です。
© 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.