QWaylandResource Class
QWaylandResource è un contenitore per una risorsa di sistema ( wl_resource). Per saperne di più...
| Intestazione: | #include <QWaylandResource> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
Funzioni pubbliche
| QWaylandResource() | |
| QWaylandResource(wl_resource *resource) | |
| wl_resource * | resource() const |
Descrizione dettagliata
QWaylandResource è un semplice wrapper attorno al tipo Wayland wl_resource e consente di utilizzare i puntatori wl_resource nelle API di Qt Quick.
Vedi anche Shell personalizzata.
Documentazione sulle funzioni membro
QWaylandResource::QWaylandResource()
Crea un oggetto `QWaylandResource` non valido. Il metodo di accesso ` resource()` restituirà `null`.
[explicit] QWaylandResource::QWaylandResource(wl_resource *resource)
Crea un oggetto `QWaylandResource` contenente un resource.
wl_resource *QWaylandResource::resource() const
Restituisce il puntatore wl_resource detenuto da questo oggetto ` 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.