QWaylandResource is a container for a
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) |
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
|qmake:||QT += waylandcompositor|
|wl_resource *||resource() const|
The QWaylandResource is a simple wrapper around the Wayland type
wl_resource, and makes it possible to use wl_resource pointers in Qt Quick APIs.
See also Custom Shell.
Member Function Documentation
Constructs an invalid QWaylandResource. The resource() accessor will return null.
[explicit] QWaylandResource::QWaylandResource(wl_resource *resource)
Constructs a QWaylandResource which contains resource.
wl_resource *QWaylandResource::resource() const
Returns the wl_resource pointer held by this QWaylandResource.
© 2023 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.