このページでは

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 CompositorGNU 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統合プラグインは、以下の寛容なライセンスの下でプロトコル定義を使用します:

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