QWaylandResource Class
QWaylandResource é um contêiner para um ` wl_resource`. Mais...
| Cabeçalho: | #include <QWaylandResource> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
Funções públicas
| QWaylandResource() | |
| QWaylandResource(wl_resource *resource) | |
| wl_resource * | resource() const |
Descrição detalhada
O QWaylandResource é um wrapper simples em torno do tipo Wayland ` wl_resource` e possibilita o uso de ponteiros `wl_resource` nas APIs d Qt Quick.
Veja também Shell personalizado.
Documentação das funções de membro
QWaylandResource::QWaylandResource()
Cria um objeto `QWaylandResource` inválido. O acessador ` resource()` retornará `null`.
[explicit] QWaylandResource::QWaylandResource(wl_resource *resource)
Cria um objeto `QWaylandResource` que contém um ` resource`.
wl_resource *QWaylandResource::resource() const
Retorna o ponteiro wl_resource mantido por este objeto ` QWaylandResource`.
© 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.