QWaylandClientExtension Class
Waylandプロトコルでカスタム拡張機能を実装するためのクラス。詳細...
| ヘッダー | #include <QWaylandClientExtension> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandClient)target_link_libraries(mytarget PRIVATE Qt6::WaylandClient) |
| qmake: | QT += waylandclient |
| を継承する: | QObject |
| 継承元: |
プロパティ
- active : bool
- protocolVersion : int
パブリック機能
| QWaylandClientExtension(const int ver) | |
| virtual | ~QWaylandClientExtension() |
| bool | isActive() const |
| int | version() const |
シグナル
| void | activeChanged() |
| void | versionChanged() |
詳細説明
QWaylandClientExtensionクラスはWaylandプロトコルのカスタム拡張機能を実装するために使用できます。拡張機能を使用するためには、コンポジターがその拡張機能をサポートしている必要があります。のカスタム拡張の例を参照してください。 Qt Wayland Compositorのカスタムエクステンションの例を参照してください。
このクラスは通常直接継承されず、QWaylandClientExtensionTemplate で継承されます。
プロパティのドキュメント
[read-only] active : bool
このプロパティは、拡張機能のアクティブ状態を保持します。
拡張機能が現在アクティブな場合はtrue に設定します。そうでない場合、このプロパティはfalse になります。
アクセス関数:
| bool | isActive() const |
通知シグナル:
| void | activeChanged() |
[read-only] protocolVersion : int
このプロパティは、プロトコルのバージョンを保持する。
このプロパティは、要求されたプロトコルのバージョンを保持する。
アクセス関数
| int | version() const |
Notifier シグナル:
| void | versionChanged() |
© 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.