QtShell QML Type

Qt Wayland Compositor 上で動作する Qt アプリケーション用のシェル拡張を提供します。 ... 詳細

Import Statement: import QtWayland.Compositor.QtShell
Since: Qt 6.3

シグナル

詳しい説明

QtShell エクステンションはQtShellSurface を通常の Wayland サーフェスに関連付ける方法を提供します。QtShellエクステンションはQtがサポートするウィンドウ管理機能をサポートするように書かれています。コンポジターとクライアントアプリケーションの両方がQtで書かれており、アプリケーションが手動ウィンドウ位置決めや "bring-to-front "のような機能を悪用しないことが信頼されているプラットフォームで適しているかもしれません。

その他の使用例については、IviApplication またはXdgShell の使用を検討してください。

import QtWayland.Compositor.QtShell

WaylandCompositor {
    property ListModel shellSurfaces: ListModel {}
    QtShell {
        onQtShellSurfaceCreated: {
             shellSurfaces.append({shellSurface: qtShellSurface})
        }
    }
}

シグナルドキュメント

void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)

このシグナルは、QtShellSurface が作成されたときに発行されます。提供されるqtShellSurface は、ShellSurfaceItem をインスタンス化するために最もよく使われる。

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


void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)

このシグナルは、クライアントがsurface に関連付けるQtShellSurface を要求したときに発行される。このシグナルのハンドラは、resource に対するQtShellSurface を作成し、シグナルの発信範囲内でそれを初期化することが期待される。QtShellSurface が作成されない場合、代わりにデフォルトのものが作成される。

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


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