このページについて

Qt Wayland Client

Qt Wayland Client ライブラリは、アプリケーションがWaylandクライアントとして動作し、Waylandコンポジターに接続するために必要な関数を提供します。ほとんどのユースケースでは、このライブラリはWayland QPAプラグインを通じて自動的に使用されるため、アプリケーション自体がライブラリの関数を使用する必要はありません。

一般的な情報については、「Qt for Linux」を参照してください。Wayland自体に関する詳細については、「WaylandとQt」を参照してください。

cmake 関数 `qt_generate_wayland_protocol_client_sources()` を使用すると、カスタムプロトコル拡張を作成できます。

また、Qtではコンポジター開発用の Qt Wayland Compositor コンポジター開発用のモジュールも提供しています。

モジュールの使用

Qt モジュールの C++ API を使用するには、モジュールライブラリに対して、直接または他の依存関係を通じてリンクを行う必要があります。CMakeやqmake を含むいくつかのビルドツールは、これを専用にサポートしています。

CMake を使用したビルド

find_package() コマンドを使用して、Qt6 パッケージ内の必要なモジュールコンポーネントを指定します。

find_package(Qt6 REQUIRED COMPONENTS WaylandClient)
target_link_libraries(mytarget PRIVATE Qt6::WaylandClient)

詳細については、「CMake を使用したビルド」の概要を参照してください。

qmake を使用したビルド

qmake を使用してモジュールをビルドするように設定するには、プロジェクトの .pro ファイル内の `QT ` 変数の値としてモジュールを追加します:

QT += waylandclient

参考

ライセンスおよび帰属表示

Qt Wayland Compositor および Qt Wayland 統合プラグインは、The Qt Company から商用ライセンスで提供されています。

さらに、Qt Wayland Compositor はGNU General Public Licenseバージョン3の下で、Qt Wayland統合プラグインはGNU Lesser General Public Licenseバージョン3またはGNU General Public Licenseバージョン2の下で利用可能です。

詳細については、「Qt ライセンス」を参照してください。

Qt Wayland Compositor および Qt Wayland 統合プラグインは、以下の寛容なライセンスに基づくプロトコル定義を使用しています。

Presentation Time Protocol, version 1

MITライセンス

Wayland Color Management Protocol, version 1

MITライセンス

Wayland Dialog Protocol, version 1

MITライセンス

Wayland EGLStream Controller Protocol, version 1.1.1

MITライセンス

Wayland Fractional Scale Protocol, version 1

MITライセンス

Wayland Fullscreen Shell Protocol, version unstable v1

MITライセンス

Wayland IVI Extension Protocol, version 1.9.1

MITライセンス

Wayland KDE DBus Menu Protocol, version 1

GNU 限定一般公衆利用許諾契約書 2.1 以降

Wayland Linux Dmabuf Unstable V1 Protocol, version unstable v1, version 3

MITライセンス

Wayland Linux Dmabuf V1 Protocol, version v1, version 5

MITライセンス

Wayland Pointer Gestures Protocol, version unstable v1, version 2

MITライセンス

Wayland Pointer Warp Protocol, version version 1

MITライセンス

Wayland Primary Selection Protocol, version 1

MITライセンス

Wayland Protocol, version 1.24.0

MITライセンス

Wayland Scaler Protocol, version 2

MITライセンス

Wayland Session Management Protocol, version experimental V1

MITライセンス

Wayland Tablet Protocol, version unstable v2, version 1

MITライセンス

Wayland Text Input Protocol v1, version unstable v1

MITライセンス

Wayland Text Input Protocol v2, version unstable v2

HPNDライセンス

Wayland Text Input Protocol, version unstable v3

MITライセンス

Wayland Viewporter Protocol, version 1

MITライセンス

Wayland XDG Foreign Protocol, version 1

MITライセンス

Wayland XDG Output Protocol, version unstable v1, version 3

MITライセンス

Wayland XDG Shell Protocol, version 1.18

MITライセンス

Wayland XDG System Bell Protocol, version 1.18

MITライセンス

Wayland xdg-activation Protocol, version unstable v1, version 1

MITライセンス

Wayland xdg-decoration Protocol, version unstable v1, version 1

MITライセンス

Wayland xdg-toplevel-icon Protocol, version version 1

MITライセンス

Wlr Data Control Unstable V1 Protocol, version 2

MITライセンス

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