이 페이지에서

QWaylandWlShell Class

QWaylandWlShell 클래스는 데스크톱 스타일 사용자 인터페이스를 위한 확장 기능입니다. 더 보기...

헤더: #include <QWaylandWlShell>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
QML에서: WlShell
상속: QWaylandShellTemplate

공개 함수

QWaylandWlShell()
QWaylandWlShell(QWaylandCompositor *compositor)

재구현된 공개 함수

virtual void initialize() override

신호

void wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)
void wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)

정적 공용 멤버

const struct wl_interface *interface()

상세 설명

QWaylandWlShell 확장은 QWaylandWlShellSurface 을 일반 Wayland 표면과 연결하는 방법을 제공합니다. 클라이언트는 셸 표면 인터페이스를 사용하여 표면의 크기 조정, 이동 등을 요청할 수 있습니다.

WlShell 는 Wayland 인터페이스 wl_shell 에 해당합니다.

멤버 함수 문서

QWaylandWlShell::QWaylandWlShell()

QWaylandWlShell 객체를 생성합니다.

QWaylandWlShell::QWaylandWlShell(QWaylandCompositor *compositor)

지정된 ` compositor`에 대한 `QWaylandWlShell` 객체를 생성합니다.

[override virtual] void QWaylandWlShell::initialize()

QWaylandCompositorExtension::initialize()을 재구현합니다.

WlShell 확장 기능을 초기화합니다.

[static] const struct wl_interface *QWaylandWlShell::interface()

QWaylandWlShell 에 대한 Wayland 인터페이스를 반환합니다.

[signal] void QWaylandWlShell::wlShellSurfaceCreated(QWaylandWlShellSurface *shellSurface)

이 신호는 클라이언트가 ` wl_shell_surface`를 생성했을 때 발생합니다. 일반적인 사용 사례로는, 이 신호의 핸들러가 `QWaylandShellSurfaceItem` 또는 ` QWaylandQuickItem `를 인스턴스화하여 ` QtQuick ` 장면에서 ` shellSurface `를 표시하도록 하는 것입니다.

[signal] void QWaylandWlShell::wlShellSurfaceRequested(QWaylandSurface *surface, const QWaylandResource &resource)

이 신호는 클라이언트가 wl_shell_surface 를 surface 에 연결해 달라고 요청했을 때 발생합니다. 이 신호의 핸들러는 resource 에 대한 셸 서피스를 생성하고, 신호가 발생하는 범위 내에서 이를 초기화할 수 있습니다. 그렇지 않은 경우 QWaylandWlShellSurface 가 자동으로 생성됩니다.

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