このページでは

QWaylandClient Class

QWaylandClient クラスは、QWaylandCompositor に接続されたクライアントを表します。詳細...

ヘッダー: #include <QWaylandClient>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
QML内: WaylandClient
継承元: QObject

プロパティ

パブリック関数

virtual ~QWaylandClient() override
wl_client *client() const
QWaylandCompositor *compositor() const
qint64 groupId() const
void kill(int signal = SIGTERM)
qint64 processId() const
qint64 userId() const

パブリックスロット

void close()

静的パブリックメンバー

QWaylandClient *fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)

詳細な説明

このクラスは、Waylandプロトコルを使用してコンポジターに接続されたクライアントに対応します。これは、Waylandインターフェース wl_client に対応しています。

プロパティのドキュメント

[read-only] compositor : QWaylandCompositor* const

このプロパティには、このQWaylandClient のコンポジターが格納されます。

アクセス関数:

QWaylandCompositor *compositor() const

[read-only] groupId : const qint64

このプロパティには、このQWaylandClient のグループIDが格納されています。

アクセス関数:

qint64 groupId() const

[read-only] processId : const qint64

このプロパティには、このQWaylandClient のプロセスIDが格納されています。

アクセス関数:

qint64 processId() const

[read-only] userId : const qint64

このプロパティには、このQWaylandClient のユーザーIDが格納されています。

アクセス関数:

qint64 userId() const

メンバー関数のドキュメント

[override virtual noexcept] QWaylandClient::~QWaylandClient()

QWaylandClient を削除します。

wl_client *QWaylandClient::client() const

このQWaylandClient のWaylandクライアントを返します。

[slot] void QWaylandClient::close()

クライアントを終了します。

[static] QWaylandClient *QWaylandClient::fromWlClient(QWaylandCompositor *compositor, wl_client *wlClient)

WaylandクライアントwlClient およびcompositor に対応するQWaylandClient を返します。クライアントに対してQWaylandClient がまだ作成されていない場合は、それが作成されて返されます。

[invokable] void QWaylandClient::kill(int signal = SIGTERM)

指定されたsignal を持つクライアントを終了させます。

注:この関数は 、メタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。

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