QWaylandXdgOutputV1 Class
컴포저의 디스플레이를 나타냅니다. 더 보기...
| 헤더: | #include <QWaylandXdgOutputV1> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| QML에서: | XdgOutputV1 |
| 상속합니다: | QObject |
속성
|
|
공공 기능
| QString | description() const |
| QRect | logicalGeometry() const |
| QPoint | logicalPosition() const |
| QSize | logicalSize() const |
| QWaylandXdgOutputManagerV1 * | manager() const |
| QString | name() const |
| QWaylandOutput * | output() const |
| void | setDescription(const QString &name) |
| void | setLogicalPosition(const QPoint &position) |
| void | setLogicalSize(const QSize &size) |
| void | setName(const QString &name) |
신호
| void | descriptionChanged() |
| void | logicalGeometryChanged() |
| void | logicalPositionChanged() |
| void | logicalSizeChanged() |
| void | managerChanged() |
| void | nameChanged() |
| void | outputChanged() |
속성 문서
description : QString
이 속성에는 이 출력에 대한 설명이 저장됩니다.
설명에 대한 규칙은 정의되어 있지 않습니다.
초기화 후 이 속성을 변경해도 적용되지 않습니다.
함수 액세스:
| QString | description() const |
| void | setDescription(const QString &name) |
알림 신호:
| void | descriptionChanged() |
[read-only] logicalGeometry : QRect
이 프로퍼티는 글로벌 컴포저 공간에서 출력의 위치와 크기를 유지합니다. 논리적 위치와 논리적 크기를 조합한 값입니다.
액세스 함수:
| QRect | logicalGeometry() const |
알림 신호:
| void | logicalGeometryChanged() |
QWaylandXdgOutputV1::logicalPosition 및 QWaylandXdgOutputV1::logicalSize 을참조하세요 .
logicalPosition : QPoint
이 프로퍼티는 글로벌 컴포지터 공간 내에서 출력의 좌표를 보유합니다.
기본값은 0,0입니다.
함수에 액세스합니다:
| QPoint | logicalPosition() const |
| void | setLogicalPosition(const QPoint &position) |
알림 신호:
| void | logicalPositionChanged() |
logicalSize : QSize
이 프로퍼티는 글로벌 컴포지터 공간에서 출력의 크기를 유지합니다.
기본값은 -1,-1로 유효하지 않습니다.
이 값은 물리적 크기가 아닌 논리적 크기라는 점을 기억하세요. 예를 들어 WaylandOutput 모드가 3840x2160이고 배율이 2인 경우입니다:
- 서피스 버퍼의 크기를 조정하지 않는 컴포저는 논리적 크기인 3840x2160을 보고합니다.
- 서피스 버퍼의 크기를 자동으로 조절하는 컴포저는 1920x1080의 논리적 크기를 보고합니다.
- 1.5의 분수 스케일을 사용하는 컴포저는 2560x1620의 논리적 크기를 보고합니다.
액세스 기능:
| QSize | logicalSize() const |
| void | setLogicalSize(const QSize &size) |
알림 신호:
| void | logicalSizeChanged() |
name : QString
이 속성은 이 출력의 이름을 저장합니다.
이름 지정 규칙은 컴포저에서 정의하지만 영숫자와 대시("-")로 제한됩니다. 각 이름은 고유하며 하드웨어 및 소프트웨어 구성이 동일한 세션에서도 일관되게 유지됩니다.
이름의 예로는 "HDMI-A-1", "WL-1", "X11-1" 등이 있습니다. 그러나 이름이 기본 기술을 반영한다고 가정하지 마세요.
초기화 후에는 이 속성을 변경해도 적용되지 않습니다.
기능에 액세스합니다:
| QString | name() const |
| void | setName(const QString &name) |
알림 신호:
| void | nameChanged() |
[read-only] output : QWaylandOutput*
이 속성은 QWaylandXdgOutputV1 과 연결된 QWaylandOutput 을 보유합니다.
액세스 함수:
| QWaylandOutput * | output() const |
알림 신호:
| void | outputChanged() |
© 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.