QWaylandXdgPopup Class

QWaylandXdgPopup 클래스는 xdg 서페이스의 팝업 특정 부분을 나타냅니다. 더 보기...

Header: #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

신호

정적 공용 멤버

QWaylandSurfaceRole *role()

상세 설명

이 클래스는 QWaylandXdgShell 확장의 일부이며, QWaylandXdgSurface 의 기능을 데스크톱 스타일 메뉴에 특화된 기능으로 확장하는 방법을 xdg 표면에 제공합니다.

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

속성 문서

[read-only] anchorEdges : const Qt::Edges

자식 서페이스가 상대적으로 배치되어야 하는 앵커 직사각형의 가장자리 집합을 반환합니다. 방향에 에지가 지정되지 않은 경우, 앵커 포인트는 에지 사이의 중앙에 위치해야 합니다.

함수에 액세스합니다:

Qt::Edges anchorEdges() const

[read-only] anchorRect : const QRect

자식 서페이스를 배치할 부모 창 지오메트리를 기준으로 앵커 직사각형을 반환합니다.

함수에 액세스합니다:

QRect anchorRect() const

[read-only] configuredGeometry : const QRect

구성 이벤트에서 팝업이 수신한 창 지오메트리입니다. 부모 서페이스의 왼쪽 상단 모서리를 기준으로 합니다.

액세스 기능:

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()

Q웨이랜드팝업의 표면 역할을 반환합니다.

[invokable] uint QWaylandXdgPopup::sendConfigure(const QRect &geometry)

geometry 에는 부모 서페이스의 창 지오메트리 왼쪽 상단 모서리를 기준으로 한 창 지오메트리가 포함됩니다.

그러면 해당 QWaylandXdgSurface 에도 구성 이벤트가 암시적으로 전송됩니다.

참고: 이 함수는 메타 오브젝트 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하십시오.

[invokable] void QWaylandXdgPopup::sendPopupDone()

팝업을 닫습니다. xdg-shell 프로토콜에 따라 클라이언트가 팝업을 삭제해야 합니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

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