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)

보호된 함수

QWaylandObject(QObject *parent = nullptr)

상세 설명

QWaylandObject는 확장 컨테이너 기능을 캡슐화합니다. 모든 QWaylandObject 객체는 자동으로 확장 컨테이너가 되며, 이것의 자식인 QWaylandCompositorExtension 객체는 자동으로 확장 목록에 자신을 추가하고 확장 객체가 소멸되면 자신을 제거합니다.

멤버 함수 문서

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

parent 의 자식으로 QWaylandObject 를 생성합니다.

void QWaylandObject::addExtension(QWaylandCompositorExtension *extension)

QWaylandObjectextension 을 등록합니다.

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 을 제거합니다.

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