QWaylandQuickShellSurfaceItem Class
QWaylandQuickShellSurfaceItem 클래스는 QWaylandShellSurface 을 나타내는 Qt Quick 항목을 제공합니다.. ..
헤더: | #include <QWaylandQuickShellSurfaceItem> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
QML에서: | ShellSurfaceItem |
상속합니다: | QWaylandQuickItem |
속성
|
|
공공 기능
QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr) | |
bool | autoCreatePopupItems() |
QQuickItem * | moveItem() const |
void | setAutoCreatePopupItems(bool enabled) |
void | setMoveItem(QQuickItem *moveItem) |
void | setShellSurface(QWaylandShellSurface *shellSurface) |
void | setStaysOnBottom(bool on) |
void | setStaysOnTop(bool on) |
QWaylandShellSurface * | shellSurface() const |
bool | staysOnBottom() const |
bool | staysOnTop() const |
신호
void | autoCreatePopupItemsChanged() |
void | moveItemChanged() |
void | shellSurfaceChanged() |
void | staysOnBottomChanged() |
void | staysOnTopChanged() |
상세 설명
이 클래스는 Qt Quick 장면의 일부로 wl_shell
, xdg_shell
또는 ivi_application
표면을 렌더링하는 데 사용됩니다. 창 장식을 클릭하여 트리거된 이동 및 크기 조정을 처리합니다.
QWaylandQuickItem, QWaylandWlShellSurface, QWaylandIviSurface 를참조하세요 .
프로퍼티 문서
autoCreatePopupItems : bool
이 프로퍼티는 이 항목이 관리하는 셸 표면을 부모로 하는 팝업에 대한 QWaylandQuickShellSurfaceItems를 자동으로 생성할지 여부를 보유합니다.
액세스 함수:
bool | autoCreatePopupItems() |
void | setAutoCreatePopupItems(bool enabled) |
알림 신호:
void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
이 속성에는 QWaylandQuickShellSurfaceItem 에 대한 이동 항목이 저장됩니다. 클라이언트가 QWaylandShellSurface 이동, 최대화, 크기 조정 등을 요청할 때 이동되는 항목입니다. 이 속성은 서버 측 데코레이션을 구현할 때 유용합니다.
액세스 기능:
QQuickItem * | moveItem() const |
void | setMoveItem(QQuickItem *moveItem) |
알림 신호:
void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
이 프로퍼티는 QWaylandQuickShellSurfaceItem 에 의해 렌더링된 QWaylandShellSurface 을 보유합니다. 사용 중인 셸 프로토콜에 따라 QWaylandXdgSurfaceV5, QWaylandWlShellSurface 또는 QWaylandIviSurface 일 수 있습니다.
액세스 함수:
QWaylandShellSurface * | shellSurface() const |
void | setShellSurface(QWaylandShellSurface *shellSurface) |
알림 신호:
void | shellSurfaceChanged() |
staysOnBottom : bool
이 항목을 다른 웨이랜드 표면 위에 보관하세요.
기능에 액세스합니다:
bool | staysOnBottom() const |
void | setStaysOnBottom(bool on) |
알림 신호:
void | staysOnBottomChanged() |
staysOnTop : bool
이 항목을 다른 웨이랜드 표면 위에 보관하세요.
기능에 액세스합니다:
bool | staysOnTop() const |
void | setStaysOnTop(bool on) |
알림 신호:
void | staysOnTopChanged() |
멤버 함수 문서
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
주어진 parent 로 QWaylandQuickWlShellSurfaceItem 을 생성합니다.
© 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.