QWaylandXdgShell Class

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

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

공용 함수

QWaylandXdgShell()
QWaylandXdgShell(QWaylandCompositor *compositor)

재구현된 공용 함수

virtual void initialize() override

공용 슬롯

uint ping(QWaylandClient *client)

시그널

void pong(uint serial)
void popupCreated(QWaylandXdgPopup *popup, QWaylandXdgSurface *xdgSurface)
void toplevelCreated(QWaylandXdgToplevel *toplevel, QWaylandXdgSurface *xdgSurface)
void xdgSurfaceCreated(QWaylandXdgSurface *xdgSurface)

정적 공용 멤버

const struct wl_interface *interface()

상세 설명

QWaylandXdgShell 확장은 QWaylandXdgToplevel 또는 QWaylandXdgPopup 을 일반 Wayland 서페이스와 연결하는 방법을 제공합니다. 클라이언트는 QWaylandXdgToplevel 인터페이스를 사용하여 서페이스의 크기 조정, 이동 등을 요청할 수 있습니다.

QWaylandXdgShell은 Wayland 인터페이스인 xdg_shell 에 해당합니다.

멤버 함수 문서

[explicit] QWaylandXdgShell::QWaylandXdgShell()

QWaylandXdgShell 객체를 생성합니다.

[explicit] QWaylandXdgShell::QWaylandXdgShell(QWaylandCompositor *compositor)

제공된 compositor 에 대한 QWaylandXdgShell 객체를 생성합니다.

[override virtual] void QWaylandXdgShell::initialize()

다시 구현합니다: QWaylandCompositorExtension::initialize().

셸 확장을 초기화합니다.

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

QWaylandXdgShell 에 대한 웨이랜드 인터페이스를 반환합니다.

[slot] uint QWaylandXdgShell::ping(QWaylandClient *client)

client 으로 핑 이벤트를 전송합니다. 클라이언트가 이벤트에 응답하면 pong 신호가 전송됩니다.

[signal] void QWaylandXdgShell::pong(uint serial)

이 신호는 클라이언트가 직렬( serial) 핑 이벤트에 응답했을 때 전송됩니다.

QWaylandXdgShell::ping()도 참조하세요 .

[signal] void QWaylandXdgShell::popupCreated(QWaylandXdgPopup *popup, QWaylandXdgSurface *xdgSurface)

이 신호는 클라이언트가 xdg_popup 을 만들었을 때 발생합니다. 일반적인 사용 사례는 이 신호의 핸들러가 QtQuick 장면에 popup 을 표시하기 위해 QWaylandShellSurfaceItem 또는 QWaylandQuickItem 을 인스턴스화하도록 하는 것입니다.

xdgSurfaceXdgSurface popup 의 역할 객체입니다.

[signal] void QWaylandXdgShell::toplevelCreated(QWaylandXdgToplevel *toplevel, QWaylandXdgSurface *xdgSurface)

이 신호는 클라이언트가 xdg_toplevel 을 만들었을 때 발생합니다. 일반적인 사용 사례는 이 신호의 핸들러가 QtQuick 장면에 toplevel 을 표시하기 위해 QWaylandShellSurfaceItem 또는 QWaylandQuickItem 을 인스턴스화하도록 하는 것입니다.

xdgSurfaceXdgSurface toplevel 의 역할 객체입니다.

[signal] void QWaylandXdgShell::xdgSurfaceCreated(QWaylandXdgSurface *xdgSurface)

이 신호는 클라이언트가 xdg_surface 을 만들었을 때 발생합니다. xdgSurface 은 매핑되지 않으므로 xdg-shell 프로토콜에 따라 역할 개체를 수신할 때까지 표시되지 않아야 합니다.

toplevelCreated() 및 popupCreated()도 참조하세요 .

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