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, version 3 のもとで利用可能であり、Qt Wayland統合プラグインはGNU Lesser General Public License, version 3またはGNU General Public License, version 2のもとで利用可能です。
詳細はQt Licensingをご覧ください。
Qt Wayland Compositor およびQt Wayland統合プラグインは、以下の寛容なライセンスの下でプロトコル定義を使用します:
MITライセンス | |
MITライセンス | |
MITライセンス | |
MITライセンス | |
MITライセンス | |
MITライセンス | |
MITライセンス | |
GNU 劣等一般公衆ライセンス 2.1 またはそれ以降 | |
Wayland Linux Dmabuf Unstable V1 Protocol, version unstable v1, version 3 | MITライセンス |
Wayland Pointer Gestures Protocol, version unstable v1, version 2 | MITライセンス |
MITライセンス | |
MITライセンス | |
MITライセンス | |
MITライセンス | |
Wayland Session Management Protocol, version experimental V1 | MITライセンス |
MITライセンス | |
MITライセンス | |
HPND ライセンス | |
MIT ライセンス | |
MITライセンス | |
MIT ライセンス | |
MIT ライセンス | |
MITライセンス | |
MITライセンス | |
Wayland xdg-activation Protocol, version unstable v1, version 1 | MITライセンス |
Wayland xdg-decoration Protocol, version unstable v1, version 1 | MITライセンス |
MITライセンス | |
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.