QWaylandResource Class
„QWaylandResource“ ist ein Container für eine „ wl_resource “. Mehr...
| Kopfzeile: | #include <QWaylandResource> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
Öffentliche Funktionen
| QWaylandResource() | |
| QWaylandResource(wl_resource *resource) | |
| wl_resource * | resource() const |
Ausführliche Beschreibung
QWaylandResource ist ein einfacher Wrapper um den Wayland-Typ „ wl_resource “ und ermöglicht die Verwendung von wl_resource-Zeigern in den APIs von „ Qt Quick “.
Siehe auch Custom Shell.
Dokumentation der Mitgliedsfunktionen
QWaylandResource::QWaylandResource()
Erstellt eine ungültige `QWaylandResource`. Der Zugriffsoperator ` resource()` gibt `null` zurück.
[explicit] QWaylandResource::QWaylandResource(wl_resource *resource)
Erstellt eine `QWaylandResource`, die ` resource` enthält.
wl_resource *QWaylandResource::resource() const
Gibt den wl_resource-Zeiger zurück, der von diesem ` QWaylandResource` verwaltet wird.
© 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.