QWaylandClientExtension Class
用于在 Wayland 协议上实现自定义扩展的类。更多
| 头文件: | #include <QWaylandClientExtension> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandClient)target_link_libraries(mytarget PRIVATE Qt6::WaylandClient) |
| qmake: | QT += waylandclient |
| 继承: | QObject |
| 继承于: |
属性
- active : bool
- protocolVersion : int
公共功能
| QWaylandClientExtension(const int ver) | |
| virtual | ~QWaylandClientExtension() |
| bool | isActive() const |
| int | version() const |
信号
| void | activeChanged() |
| void | versionChanged() |
详细说明
QWaylandClientExtension 类可用于实现 Wayland 协议的自定义扩展。该扩展必须由合成器支持才能使用。请参阅 Qt Wayland Compositor中的自定义扩展示例。
为方便起见,该类通常不直接继承,而是通过QWaylandClientExtensionTemplate 继承。
© 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.