QWaylandXdgPopup Class
QWaylandXdgPopup 클래스는 xdg 표면의 팝업 관련 부분을 나타냅니다. 더 보기...
| 헤더: | #include <QWaylandXdgPopup> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| QML에서: | XdgPopup |
| 상속: | QObject |
속성
|
|
공개 함수
| Qt::Edges | anchorEdges() const |
| QRect | anchorRect() const |
| QRect | configuredGeometry() const |
| Qt::Orientations | flipConstraints() const |
| Qt::Edges | gravityEdges() const |
| QPoint | offset() const |
| QWaylandXdgSurface * | parentXdgSurface() const |
| QSize | positionerSize() const |
| Qt::Orientations | resizeConstraints() const |
| uint | sendConfigure(const QRect &geometry) |
| void | sendPopupDone() |
| Qt::Orientations | slideConstraints() const |
| QPoint | unconstrainedPosition() const |
| QWaylandXdgSurface * | xdgSurface() const |
신호
| void | configuredGeometryChanged() |
정적 공용 멤버
| QWaylandSurfaceRole * | role() |
상세 설명
이 클래스는 QWaylandXdgShell 확장 기능의 일부이며, xdg 표면을 위한 데스크톱 스타일 메뉴에 특화된 기능을 통해 QWaylandXdgSurface 의 기능을 확장하는 방법을 제공합니다.
이는 Wayland 인터페이스 xdg_popup 에 해당합니다.
속성 문서
[read-only] anchorEdges : const Qt::Edges
자식 표면을 배치할 기준이 되는 앵커 사각형의 모서리 집합을 반환합니다. 특정 방향에 대해 모서리가 지정되지 않은 경우, 앵커 포인트는 해당 모서리들 사이의 중앙에 위치해야 합니다.
액세스 함수:
| Qt::Edges | anchorEdges() const |
[read-only] anchorRect : const QRect
자식 표면을 배치할 기준이 되는 부모 창의 기하 구조에 상대적인 앵커 사각형을 반환합니다.
액세스 함수:
| QRect | anchorRect() const |
[read-only] configuredGeometry : QRect
popup이 configure 이벤트에서 수신한 창 지오메트리입니다. 부모 표면의 왼쪽 상단 모서리를 기준으로 합니다.
액세스 함수:
| QRect | configuredGeometry() const |
알림 신호:
| void | configuredGeometryChanged() |
[read-only] flipConstraints : const Qt::Orientations
이 속성은 자식 요소가 화면에 맞게 회전해야 하는 방향을 지정합니다.
액세스 함수:
| Qt::Orientations | flipConstraints() const |
[read-only] gravityEdges : const Qt::Edges
표면을 앵커 포인트에 대해 어떤 방향으로 배치할지 지정합니다.
액세스 함수:
| Qt::Edges | gravityEdges() const |
[read-only] offset : const QPoint
앵커 사각형 상의 앵커 위치와 표면 상의 앵커 위치를 기준으로 한 표면 위치를 반환합니다.
액세스 함수:
| QPoint | offset() const |
[read-only] parentXdgSurface : QWaylandXdgSurface* const
이 속성은 이 QWaylandXdgPopup 의 상위 요소와 연결된 QWaylandXdgSurface 를 포함합니다.
액세스 함수:
| QWaylandXdgSurface * | parentXdgSurface() const |
[read-only] positionerSize : const QSize
포지셔너 객체가 창 지오메트리에 대해 요청한 크기를 반환합니다.
액세스 함수:
| QSize | positionerSize() const |
[read-only] resizeConstraints : const Qt::Orientations
이 속성은 자식 요소가 화면 내에 맞게 크기를 조정할 때 적용할 방향을 지정합니다.
액세스 함수:
| Qt::Orientations | resizeConstraints() const |
[read-only] slideConstraints : const Qt::Orientations
이 속성은 자식 요소가 화면에 맞게 이동해야 하는 방향을 지정합니다.
액세스 함수:
| Qt::Orientations | slideConstraints() const |
[read-only] unconstrainedPosition : const QPoint
표면이 제약받지 않는 경우, 부모 창의 기하학적 구조에 대한 표면의 위치입니다. 즉, 화면 내부에 맞도록 이동되지 않았을 때 등을 말합니다.
액세스 함수:
| QPoint | unconstrainedPosition() const |
[read-only] xdgSurface : QWaylandXdgSurface* const
이 속성은 이 QWaylandXdgPopup 에 연결된 QWaylandXdgSurface 를 포함합니다.
액세스 함수:
| QWaylandXdgSurface * | xdgSurface() const |
멤버 함수 설명서
[static] QWaylandSurfaceRole *QWaylandXdgPopup::role()
QWaylandPopup의 표면 역할을 반환합니다.
[invokable] uint QWaylandXdgPopup::sendConfigure(const QRect &geometry)
클라이언트에 configure 이벤트를 전송합니다. ` geometry `에는 부모 서페이스의 창 지오메트리 좌상단 모서리를 기준으로 한 창 지오메트리가 포함됩니다.
이는 암시적으로 해당 QWaylandXdgSurface 에도 configure 이벤트를 전송합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
[invokable] void QWaylandXdgPopup::sendPopupDone()
팝업을 닫습니다. xdg-shell 프로토콜에 따르면, 이 작업으로 클라이언트가 팝업을 제거하게 됩니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
© 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.