QCapturableWindow Class
캡처 가능한 창의 기본 정보를 가져오는 데 사용됩니다. 더 보기...
| 헤더: | #include <QCapturableWindow> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake: | QT += multimedia |
| 다음부터: | Qt 6.6부터 |
| QML에서: | CapturableWindow |
속성
- description : const QString
- isValid : const bool
공개 행사
| QCapturableWindow() | |
(since 6.10) | QCapturableWindow(QWindow *window) |
| QCapturableWindow(const QCapturableWindow &other) | |
| QCapturableWindow(QCapturableWindow &&other) | |
| ~QCapturableWindow() | |
| QString | description() const |
| bool | isValid() const |
| void | swap(QCapturableWindow &other) |
| QCapturableWindow & | operator=(QCapturableWindow &&other) |
| QCapturableWindow & | operator=(const QCapturableWindow &other) |
관련 비회원
| bool | operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs) |
| bool | operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs) |
상세 설명
이 클래스에는 호출될 때마다 현재 상태를 가져오는 ` QCapturableWindow::isValid ` 메서드를 제외한 일련의 창 정보가 포함되어 있습니다.
QWindowCapture도 참조하십시오 .
속성 설명
[read-only] description : const QString
이 속성에는 창에 대한 설명이 저장됩니다.
대부분의 경우 이 속성은 창 제목을 나타냅니다.
액세스 함수:
| QString | description() const |
[read-only] isValid : const bool
이 속성은 창에 대한 정보가 유효한지 여부를 나타냅니다.
유효하지 않은 창 정보란 존재하지 않는 창을 의미하거나, 특정 창을 가리키지 않는 경우를 말합니다.
액세스 함수:
| bool | isValid() const |
멤버 함수 문서
QCapturableWindow::QCapturableWindow()
어떤 창도 참조하지 않는 null 캡처 가능 창 정보를 생성합니다.
[explicit invokable, since 6.10] QCapturableWindow::QCapturableWindow(QWindow *window)
지정된 창에 매핑되는 QCapturableWindow 인스턴스를 생성합니다.
QCapturableWindow의 설명은 지정된 QWindow 의 제목과 일치합니다.
주의: 지정된 ` QWindow `가 아직 표시되지 않은 경우, 이 생성자는 유효하지 않은 인스턴스를 생성할 수 있습니다. 따라서 Qt 애플리케이션이 실행 중이 아닌 경우, 유효하지 않은 ` QCapturableWindow ` 인스턴스가 생성될 것으로 예상됩니다. 인스턴스의 유효 여부는 시간이 지남에 따라 ` isValid `를 조회하여 확인할 수 있습니다.
입력으로 nullptr이 주어지면, 이 메서드는 절대 유효해지지 않는 인스턴스를 반환합니다.
최상위 레벨이 아닌 창이 입력으로 주어지면, 이 메서드는 유효해지지 않을 인스턴스를 반환합니다.
참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 를 참조하십시오.
이 함수는 Qt 6.10에서 도입되었습니다.
QCapturableWindow::QCapturableWindow(const QCapturableWindow &other)
other QCapturableWindow를 사용하여 새 창 정보를 생성합니다.
[constexpr noexcept default] QCapturableWindow::QCapturableWindow(QCapturableWindow &&other)
other 에서 파생하여 QCapturableWindow 객체를 생성합니다.
[noexcept] QCapturableWindow::~QCapturableWindow()
창 정보를 삭제합니다.
[noexcept] void QCapturableWindow::swap(QCapturableWindow &other)
현재 창 정보를 ` other`와 교환합니다.
[noexcept] QCapturableWindow &QCapturableWindow::operator=(QCapturableWindow &&other)
other 을 QCapturableWindow 로 이동합니다.
QCapturableWindow &QCapturableWindow::operator=(const QCapturableWindow &other)
other 의 창 정보를 이 QCapturableWindow 에 할당합니다.
관련 비회원
[noexcept] bool operator!=(const QCapturableWindow &lhs, const QCapturableWindow &rhs)
lhs 와 rhs 의 창 정보가 서로 다른 창을 가리키는 경우 ` true `를 반환하고, 그렇지 않은 경우 ` false`를 반환합니다.
[noexcept] bool operator==(const QCapturableWindow &lhs, const QCapturableWindow &rhs)
lhs 와 rhs 의 창 정보가 동일한 창을 가리키는 경우 true 을 반환하고, 그렇지 않은 경우 false 을 반환합니다.
© 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.