QWaylandWlShell Class
QWaylandWlShell クラスは、デスクトップスタイルのユーザーインターフェースのための拡張機能です。詳細...
| ヘッダー: | #include <QWaylandWlShell> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| QML内: | WlShell |
| 継承元: | QWaylandShellTemplate |
パブリック関数
| QWaylandWlShell() | |
| QWaylandWlShell(QWaylandCompositor *compositor) |
再実装されたパブリック関数
| virtual void | initialize() override |
シグナル
| void | wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface) |
| void | wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource) |
静的パブリックメンバー
| const struct wl_interface * | interface() |
詳細な説明
QWaylandWlShell 拡張機能は、QWaylandWlShellSurface を通常の Wayland サーフェスに関連付ける手段を提供します。クライアントは、シェルサーフェスインターフェースを使用して、サーフェスのサイズ変更や移動などを要求できます。
WlShell は、Wayland インターフェースwl_shell に対応しています。
メンバ関数のドキュメント
QWaylandWlShell::QWaylandWlShell()
QWaylandWlShell オブジェクトを生成します。
QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)
指定されたcompositor に対して、QWaylandWlShellオブジェクトを作成します。
[override virtual] void QWaylandWlShell::initialize()
QWaylandCompositorExtension::initialize() を再実装します。
WlShell 拡張機能を初期化します。
[static] const struct wl_interface *QWaylandWlShell::interface()
QWaylandWlShell の Wayland インターフェースを返します。
[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
このシグナルは、クライアントがwl_shell_surface を作成した際に発火します。一般的な使用例として、このシグナルのハンドラがQWaylandShellSurfaceItemまたはQWaylandQuickItem をインスタンス化し、QtQuick シーン内でshellSurface を表示することが挙げられます。
[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)
このシグナルは、クライアントが `wl_shell_surface ` を `surface` に関連付けるよう要求したときに発せられます。このシグナルのハンドラは、`resource ` 用のシェルサーフェスを作成し、シグナル発火のスコープ内でそれを初期化することができます。そうでない場合は、`QWaylandWlShellSurface ` が自動的に作成されます。
© 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.