En esta página

QWaylandResource Class

QWaylandResource es un contenedor para un ` wl_resource`. Más información...

Encabezado: #include <QWaylandResource>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor

Funciones públicas

QWaylandResource()
QWaylandResource(wl_resource *resource)
wl_resource *resource() const

Descripción detallada

QWaylandResource es un sencillo envoltorio del tipo de Wayland « wl_resource », que permite utilizar punteros wl_resource en las API de « Qt Quick ».

Véase también Shell personalizado.

Documentación de funciones miembro

QWaylandResource::QWaylandResource()

Crea un objeto `QWaylandResource` no válido. El accesor ` resource()` devolverá `null`.

[explicit] QWaylandResource::QWaylandResource(wl_resource *resource)

Crea un objeto `QWaylandResource` que contiene ` resource`.

wl_resource *QWaylandResource::resource() const

Devuelve el puntero wl_resource que contiene este ` 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.