このページでは

QWaylandObject Class

QWaylandObject は、Wayland 拡張機能を含むことができるオブジェクトの基底クラスです。詳細...

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

QWaylandCompositor、QWaylandCompositorExtension 、QWaylandKeyboard 、QWaylandOutput 、QWaylandPointer 、QWaylandSeat 、QWaylandSurface 、およびQWaylandTouch

パブリック関数

void addExtension(QWaylandCompositorExtension *extension)
QWaylandCompositorExtension *extension(const QByteArray &name)
QWaylandCompositorExtension *extension(const wl_interface *interface)
QList<QWaylandCompositorExtension *> extensions() const
void removeExtension(QWaylandCompositorExtension *extension)

Protected関数

QWaylandObject(QObject *parent = nullptr)

詳細な説明

QWaylandObject は、拡張コンテナの機能をカプセル化しています。QWaylandObject オブジェクトはすべて自動的に拡張コンテナとなり、その子であるQWaylandCompositorExtension オブジェクトは自動的にその拡張リストに自分自身を追加し、拡張オブジェクトが破棄されると自分自身を削除します。

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

[protected] QWaylandObject::QWaylandObject(QObject *parent = nullptr)

parent の子として QWaylandObject を作成します。

void QWaylandObject::addExtension(QWaylandCompositorExtension *extension)

extension を、このQWaylandObject に登録します。

QWaylandCompositorExtension *QWaylandObject::extension(const QByteArray &name)

QWaylandObject に登録されている場合、name と一致するコンポジター拡張機能を返します。この名前に一致する拡張機能が登録されていない場合、この関数は null を返します。

QWaylandCompositorExtension *QWaylandObject::extension(const wl_interface *interface)

QWaylandObject に登録されている場合、interface に一致するコンポジター拡張を返します。このインターフェースに一致する拡張が登録されていない場合、この関数は null を返します。

QList<QWaylandCompositorExtension *> QWaylandObject::extensions() const

このQWaylandObject に登録されているコンポジター拡張機能のリストを返します。

void QWaylandObject::removeExtension(QWaylandCompositorExtension *extension)

以前にaddExtension() を使用して登録されていた場合、このQWaylandObject の登録済み拡張機能リストからextension を削除します。

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