On this page

QWaylandClientExtensionTemplate Class

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

A class for implementing custom extensions on the Wayland protocol. More...

Header: #include <QWaylandClientExtensionTemplate>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandClient)
target_link_libraries(mytarget PRIVATE Qt6::WaylandClient)
qmake: QT += waylandclient
Inherits: QWaylandClientExtension

Detailed Description

The QWaylandClientExtensionTemplate is a convenience class for creating the client-side implementation of custom Wayland protocols. Typical usage involves inheriting this class and instantiating it with its own subclass.

See the Custom Extension example in Qt Wayland Compositor for a concrete use of this class.

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