XdgShell QML Type

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

Import Statement: import QtWayland.Compositor.XdgShell
In C++: QWaylandXdgShell

シグナル

方法

  • void ping(WaylandClient client)

詳しい説明

XdgShellエクステンションはXdgToplevel またはXdgPopup を通常のWaylandサーフェスに関連付ける方法を提供します。XdgToplevel インターフェイスを使用して、クライアントはサーフェスのサイズ変更、移動などをリクエストできます。

XdgShellはWaylandインターフェースのxdg_shell に対応しています。

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

import QtWayland.Compositor.XdgShell

WaylandCompositor {
    XdgShell {
        // ...
    }
}

シグナルの説明

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 を作成したときに発行されます。一般的なユースケースは、このシグナルのハンドラがQtQuick シーンにtoplevel を表示するためにShellSurfaceItem またはWaylandQuickItem をインスタンス化することです。

xdgSurface は のロールオブジェクトです。XdgSurface toplevel

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


xdgSurfaceCreated(XdgSurface xdgSurface)

このシグナルは、クライアントがxdg_surface を作成したときに発行されます。xdgSurface は、ロールオブジェクトを受け取るまで、マップされない、すなわち、xdg-shell プロトコルによれば、表示されないことに注意してください。

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

toplevelCreated() およびpopupCreated()も参照


メソッド・ドキュメント

void ping(WaylandClient client)

ping イベントをclient に送信します。クライアントがこのイベントに応答した場合、pong シグナルが発行されます。


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