Qt Wayland Compositor QML Types

Qt WaylandモジュールはWaylandプロトコルをサポートするカスタムディスプレイサーバーを作成するために使用できるQML型を提供します。

QML型は以下のimport文を使ってアプリケーションにインポートすることができます:

モジュールの使用

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

CMake でのビルド

find_package() コマンドを使用して、必要なモジュール・コンポーネントをQt6 パッケージから探します:

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

詳細については、CMakeによるビルドの概要を参照してください。

qmakeでのビルド

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

QT += waylandcompositor

QML import

import QtWayland.Compositor

アプリケーションでこれらの型を使用する方法の詳細については Qt Wayland Compositorドキュメントを参照してください。

IdleInhibitManagerV1

コンポジターのアイドル動作を抑制する拡張機能を提供します。

QtTextInputMethodManager

コンポジターの入力メソッドへのアクセスを提供します。

ShellSurface

シェル拡張によって指定されたサーフェスロールの共通インターフェイスを提供します。

ShellSurfaceItem

ShellSurfaceを表示し、相互作用するためのQt Quick

TextInputManager

コンポジターの入力メソッドへのアクセスを提供します。

WaylandClient

WaylandCompositorに接続するクライアントを表す

WaylandCompositor

Waylandディスプレイサーバーの管理

WaylandHardwareLayer

親WaylandQuickItemのレンダリングにハードウェアレイヤーを使用させる

WaylandOutput

コンポジターが管理する表示可能領域へのアクセスを提供する

WaylandQuickItem

WaylandViewを表すQt Quick

WaylandSeat

キーボード、マウス、タッチ入力へのアクセスを提供します。

WaylandSurface

出力デバイス上の矩形領域を表します。

WaylandView

出力デバイス上のサーフェスのビューを表します。

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