이 페이지에서

QWaylandResource Class

QWaylandResource는 wl_resource 를 담는 컨테이너입니다. 더 보기...

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

공개 함수

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

상세 설명

QWaylandResource는 Wayland 타입 wl_resource 을 감싸는 간단한 래퍼이며, 이를 통해 Qt Quick API에서 wl_resource 포인터를 사용할 수 있게 해줍니다.

‘사용자 정의 셸’항목도 참조하십시오 .

멤버 함수 문서

QWaylandResource::QWaylandResource()

유효하지 않은 QWaylandResource 객체를 생성합니다. resource() 액세서리는 null을 반환합니다.

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

resource 를 포함하는 QWaylandResource를 생성합니다.

wl_resource *QWaylandResource::resource() const

이 ` QWaylandResource`가 보유한 `wl_resource` 포인터를 반환합니다.

© 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.