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 |
공용 함수
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도 참조하세요 .
멤버 함수 문서
QCapturableWindow::QCapturableWindow()
창을 참조하지 않는 널 캡처 가능한 창 정보를 생성합니다.
[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를 사용하여 새 창 정보를 구성합니다.
[noexcept]
QCapturableWindow::QCapturableWindow(QCapturableWindow &&other)
other 에서 이동하여 QCapturableWindow 를 생성합니다.
[noexcept]
QCapturableWindow::~QCapturableWindow()
창 정보를 삭제합니다.
QString QCapturableWindow::description() const
창에 대한 설명을 반환합니다. 대부분의 경우 창 제목을 나타냅니다.
참고: 속성 설명을 위한 게터 함수입니다.
bool QCapturableWindow::isValid() const
창 정보가 유효한지 여부를 식별합니다.
유효하지 않은 창 정보는 존재하지 않는 창을 가리키거나 창을 참조하지 않습니다.
창이 유효하면 참을 반환하고 유효하지 않으면 거짓을 반환합니다.
참고: isValid 속성에 대한 게터 함수.
[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
를 반환합니다.
© 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.