このページでは

QWaylandClientExtension Class

Waylandプロトコル上でカスタム拡張機能を実装するためのクラス。詳細...

ヘッダー: #include <QWaylandClientExtension>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandClient)
target_link_libraries(mytarget PRIVATE Qt6::WaylandClient)
qmake: QT += waylandclient
継承元: QObject
継承元:

QWaylandClientExtensionTemplate

プロパティ

パブリック関数

QWaylandClientExtension(const int ver)
(since 6.12) QWaylandClientExtension(int ver, QObject *parent)
virtual ~QWaylandClientExtension()
bool isActive() const
int version() const

シグナル

詳細な説明

QWaylandClientExtension クラスは、Wayland プロトコル向けのカスタム拡張機能を実装するために使用できます。この拡張機能を使用するには、コンポジター側でもサポートされている必要があります。カスタム拡張機能のコンポジター側とクライアント側の両方を実装した例については、 Qt Wayland Compositor を参照してください。

利便性のため、このクラスは通常、直接継承されるのではなく、QWaylandClientExtensionTemplate を通じて継承されます。

プロパティのドキュメント

[read-only] active : bool

このプロパティは、拡張機能のアクティブ状態を保持します。

拡張機能が現在アクティブな場合は、true に設定します。そうでない場合、このプロパティはfalse となります。

アクセス関数:

bool isActive() const

通知シグナル:

void activeChanged()

[read-only] protocolVersion : int

このプロパティには、プロトコルのバージョンが格納されます。

このプロパティには、要求されたプロトコルのバージョンが格納されます。

アクセス関数:

int version() const

通知シグナル:

void versionChanged()

メンバ関数のドキュメント

[explicit] QWaylandClientExtension::QWaylandClientExtension(const int ver)

クライアント拡張機能を構築し、そのバージョンをver に設定します。QWaylandClientExtension(ver, nullptr)と同等です。

[explicit, since 6.12] QWaylandClientExtension::QWaylandClientExtension(int ver, QObject *parent)

クライアント拡張機能を構築し、そのバージョンをver に設定するとともに、その拡張機能をparent の子として設定します。

この関数は Qt 6.12 で導入されました。

[virtual noexcept] QWaylandClientExtension::~QWaylandClientExtension()

クライアント拡張機能を削除します。

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