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ポインタを使用できるようにします。

Custom Shellも参照してください

メンバー関数ドキュメント

QWaylandResource::QWaylandResource()

無効な QWaylandResource を構築します。resource() アクセサは null を返します。

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

resource を含む QWaylandResource を構築します。

wl_resource *QWaylandResource::resource() const

このQWaylandResource が保持する wl_resource ポインタを返します。

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