Sur cette page

QWaylandClientExtensionTemplate Class

template <typename T, auto destruct = nullptr> class QWaylandClientExtensionTemplate

Classe permettant de mettre en œuvre des extensions personnalisées sur le protocole Wayland. Plus d'informations...

En-tête : #include <QWaylandClientExtensionTemplate>
CMake : find_package(Qt6 REQUIRED COMPONENTS WaylandClient)
target_link_libraries(mytarget PRIVATE Qt6::WaylandClient)
qmake : QT += waylandclient
Héritages : QWaylandClientExtension

Description détaillée

La classe QWaylandClientExtensionTemplate est une classe de commodité permettant de créer l'implémentation côté client de protocoles Wayland personnalisés. L'utilisation typique consiste à hériter de cette classe et à l'instancier avec sa propre sous-classe.

Voir l'exemple de l'extension personnalisée dans Qt Wayland Compositor pour une utilisation concrète de cette classe.

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