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 ドキュメント
pong(int serial)
このシグナルは、クライアントがpingイベントに対してシリアルデータで応答した際、serial で送信されます。
注: 対応するハンドラは onPong です。
「ping()」も参照してください 。
popupCreated(XdgPopup popup, XdgSurface xdgSurface)
このシグナルは、クライアントがxdg_popup を作成したときに発火します。一般的な使用例として、このシグナルのハンドラにShellSurfaceItem またはWaylandQuickItem をインスタンス化させ、QtQuick のシーン内でpopup を表示させることが挙げられます。
xdgSurface は、popup が担当するXdgSurface です。
注: 対応するハンドラは onPopupCreated です。 は、そのハンドラが担当するロールオブジェクトです。
toplevelCreated(XdgToplevel toplevel, XdgSurface xdgSurface)
このシグナルは、クライアントがxdg_toplevel を作成したときに発せられます。一般的な使用例として、このシグナルのハンドラに、QtQuick のシーン内でtoplevel を表示するために、ShellSurfaceItem またはWaylandQuickItem をインスタンス化させることが挙げられます。
xdgSurface は、toplevel が担当するXdgSurface です。
注: 対応するハンドラは onToplevelCreated です。 は、そのロールオブジェクトです。
xdgSurfaceCreated(XdgSurface xdgSurface)
このシグナルは、クライアントがxdg_surface を作成したときに発せられます。なお、xdgSurface はマッピングされていないため、xdg-shell プロトコルに従い、roleオブジェクトを受信するまでは表示されるべきではありません。
注: 対応するハンドラは `onXdgSurfaceCreated` です。
toplevelCreated() およびpopupCreated()も参照してください 。
メソッドのドキュメント
void ping(WaylandClient client)
client に対して ping イベントを送信します。クライアントがこのイベントに応答すると、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.