QtShell QML Type
Qt Wayland Compositor...에서 실행되는 Qt 응용 프로그램을 위한 셸 확장을 제공합니다... .
Import Statement: | import QtWayland.Compositor.QtShell |
Since: | Qt 6.3 |
Signals
- void qtShellSurfaceCreated(QtShellSurface *qtShellSurface)
- void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource)
자세한 설명
QtShell 확장은 QtShellSurface 를 일반 Wayland 서페이스에 연결하는 방법을 제공합니다. QtShell 확장은 Qt에서 지원하는 창 관리 기능을 지원하기 위해 작성되었습니다. 컴포저와 클라이언트 애플리케이션이 모두 Qt로 작성되고 애플리케이션이 수동 창 위치 지정 및 "가져오기" 등의 기능을 남용하지 않을 것으로 신뢰되는 플랫폼에 적합할 수 있습니다.
다른 사용 사례의 경우 IviApplication 또는 XdgShell 을 사용하는 것이 좋습니다.
import QtWayland.Compositor.QtShell WaylandCompositor { property ListModel shellSurfaces: ListModel {} QtShell { onQtShellSurfaceCreated: { shellSurfaces.append({shellSurface: qtShellSurface}) } } }
신호 문서
void qtShellSurfaceCreated(QtShellSurface *qtShellSurface) |
이 신호는 QtShellSurface 가 생성될 때 전송됩니다. 제공된 qtShellSurface 은 ShellSurfaceItem 을 인스턴스화하는 데 가장 일반적으로 사용됩니다.
참고: 해당 핸들러는 onQtShellSurfaceCreated
입니다.
void qtShellSurfaceRequested(WaylandSurface surface, WaylandResource resource) |
이 신호는 클라이언트가 QtShellSurface 를 surface 에 연결하도록 요청했을 때 발생합니다. 이 신호의 핸들러는 resource 에 대해 QtShellSurface 를 생성하고 신호 방출 범위 내에서 초기화해야 합니다. QtShellSurface 이 생성되지 않으면 기본값이 대신 생성됩니다.
참고: 해당 핸들러는 onQtShellSurfaceRequested
입니다.
© 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.