XdgShell QML Type
デスクトップスタイルのユーザーインターフェースの拡張を提供します。詳細...
| Import Statement: | import QtWayland.Compositor.XdgShell |
| In C++: | QWaylandXdgShell |
シグナル
- pong(int serial)
- popupCreated(XdgPopup popup, XdgSurface xdgSurface)
- toplevelCreated(XdgToplevel toplevel, XdgSurface xdgSurface)
- xdgSurfaceCreated(XdgSurface xdgSurface)
方法
- void ping(WaylandClient client)
詳しい説明
XdgShellエクステンションはXdgToplevel またはXdgPopup を通常のWaylandサーフェスに関連付ける方法を提供します。XdgToplevel インターフェイスを使用して、クライアントはサーフェスのサイズ変更、移動などをリクエストできます。
XdgShellはWaylandインターフェースのxdg_shell に対応しています。
コンポジターでシェル拡張の機能を提供するには、XdgShellコンポーネントのインスタンスを作成し、コンポジターがサポートする拡張のリストに追加します:
import QtWayland.Compositor.XdgShell WaylandCompositor { XdgShell { // ... } }
Signal Documentation
pong(int serial)
このシグナルは、クライアントがpingイベントにserial,serial で応答したときに発行される。
注: 対応するハンドラはonPong 。
ping()も参照してください 。
popupCreated(XdgPopup popup, XdgSurface xdgSurface)
このシグナルは、クライアントがxdg_popup を作成したときに発行される。一般的な使用例は、このシグナルのハンドラがShellSurfaceItem またはWaylandQuickItem をインスタンス化し、QtQuick のシーンでpopup を表示することである。
xdgSurface はXdgSurface popup のロールオブジェクトです。
注: 対応するハンドラはonPopupCreated です。
toplevelCreated(XdgToplevel toplevel, XdgSurface xdgSurface)
このシグナルは、クライアントがxdg_toplevel を作成したときに発行される。一般的な使用例は、このシグナルのハンドラがShellSurfaceItem またはWaylandQuickItem をインスタンス化し、QtQuick のシーンでtoplevel を表示することである。
xdgSurface はXdgSurface toplevel のロールオブジェクトです。
注: 対応するハンドラはonToplevelCreated です。
xdgSurfaceCreated(XdgSurface xdgSurface)
このシグナルは、クライアントがxdg_surface を作成したときに発行される。xdgSurface はマップされていない、すなわちxdg-shell プロトコルによれば、ロールオブジェクトを受け取るまでは表示されるべきでないことに注意。
注: 対応するハンドラはonXdgSurfaceCreated です。
toplevelCreated() およびpopupCreated()も参照 。
メソッドのドキュメント
void ping(WaylandClient client)
ping イベントをclient に送る。クライアントがイベントに返信すると、pong シグナルが発せられる。
© 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.