QWaylandObject Class
QWaylandObject è la classe base per gli oggetti che possono contenere estensioni Wayland. Per saperne di più...
| Intestazione: | #include <QWaylandObject> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| Eredita da: | QObject |
| Ereditato da: | QWaylandCompositor, QWaylandCompositorExtension, QWaylandKeyboard, QWaylandOutput, QWaylandPointer, QWaylandSeat, QWaylandSurface e QWaylandTouch |
Funzioni pubbliche
| void | addExtension(QWaylandCompositorExtension *extension) |
| QWaylandCompositorExtension * | extension(const QByteArray &name) |
| QWaylandCompositorExtension * | extension(const wl_interface *interface) |
| QList<QWaylandCompositorExtension *> | extensions() const |
| void | removeExtension(QWaylandCompositorExtension *extension) |
Funzioni protette
| QWaylandObject(QObject *parent = nullptr) |
Descrizione dettagliata
QWaylandObject incapsula la funzionalità di contenitore delle estensioni. Qualsiasi oggetto QWaylandObject sarà automaticamente un contenitore di estensioni e un obiett QWaylandCompositorExtension, che ne sia un figlio, si aggiungerà automaticamente al proprio elenco di estensioni e si rimuoverà quando l’oggetto estensione verrà distrutto.
Documentazione delle funzioni membro
[protected] QWaylandObject::QWaylandObject(QObject *parent = nullptr)
Crea un oggetto `QWaylandObject` come figlio di ` parent`.
void QWaylandObject::addExtension(QWaylandCompositorExtension *extension)
Associa extension a questo QWaylandObject.
QWaylandCompositorExtension *QWaylandObject::extension(const QByteArray &name)
Restituisce l'estensione del compositore corrispondente a name, se ne è stata registrata una presso l'QWaylandObject. Se non è stata registrata alcuna estensione corrispondente a tale nome, questa funzione restituisce null.
QWaylandCompositorExtension *QWaylandObject::extension(const wl_interface *interface)
Restituisce l’estensione del compositore che corrisponde all’interfaccia interface, se ne è stata registrata una presso l’ QWaylandObject. Se non è stata registrata alcuna estensione corrispondente all’interfaccia, questa funzione restituisce null.
QList<QWaylandCompositorExtension *> QWaylandObject::extensions() const
Restituisce l'elenco delle estensioni del compositore che sono state registrate con questo QWaylandObject.
void QWaylandObject::removeExtension(QWaylandCompositorExtension *extension)
Rimuove extension dall'elenco delle estensioni registrate in questa pagina QWaylandObject, qualora fosse stata precedentemente registrata tramite addExtension().
© 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.