WlShell QML Type

デスクトップスタイルのユーザーインターフェースの拡張を提供します。詳細...

Import Statement: import QtWayland.Compositor.WlShell
In C++: QWaylandWlShell

シグナル

詳しい説明

WlShell拡張はShellSurface 、通常のWaylandサーフェスと関連付ける方法を提供する。シェルサーフェスインターフェースを使うことで、クライアントはサーフェスのサイズ変更や移動などをリクエストできる。

WlShellはWaylandインターフェースwl_shell に対応しています。

コンポジターでシェル拡張の機能を提供するには、WlShellコンポーネントのインスタンスを作成し、コンポジターがサポートする拡張のリストに追加します:

import QtWayland.Compositor.WlShell

WaylandCompositor {
    WlShell {
        // ...
    }
}

シグナル・ドキュメント

void wlShellSurfaceCreated(WlShellSurface shellSurface)

このシグナルは、クライアントがwl_shell_surface を作成したときに発行されます。一般的な使用例は、このシグナルのハンドラがShellSurfaceItem またはWaylandQuickItem をインスタンス化し、QtQuick のシーンでshellSurface を表示することです。

注: 対応するハンドラはonWlShellSurfaceCreated です。


void wlShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)

このシグナルは、クライアントがsurface に関連付けるwl_shell_surface を要求したときに発せられる。このシグナルのハンドラは、resource のシェルサーフェスを作成し、シグナルの発行範囲内で初期化することができます。そうでない場合、WlShellSurface が自動的に作成される。

注: 対応するハンドラはonWlShellSurfaceRequested である。


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