QRenderCaptureReply Class

class Qt3DRender::QRenderCaptureReply

렌더링 캡처 요청의 결과를 수신합니다. 더 보기...

헤더: #include <Qt3DRender/QRenderCaptureReply>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: RenderCaptureReply
상속합니다: QObject
상태: Deprecated

속성

공공 기능

int captureId() const
QImage image() const
bool isComplete() const
bool saveImage(const QString &fileName) const

신호

void completed()

상세 설명

QRenderCapture::requestCapture 로부터 이미지를 수신하는 객체입니다.

프로퍼티 문서

[read-only] captureId : const int

렌더캡처에 전달된 captureId를 보유합니다.

함수에 액세스합니다:

int captureId() const

[read-only] complete : const bool

렌더링 캡처의 전체 상태를 유지합니다.

함수에 액세스합니다:

bool isComplete() const

알림 신호:

void completed()

[read-only] image : const QImage

렌더링 캡처의 결과로 생성된 이미지를 보유합니다.

함수에 액세스합니다:

QImage image() const

멤버 함수 문서

[invokable] bool QRenderCaptureReply::saveImage(const QString &fileName) const

렌더링 캡처 결과를 fileName 에 이미지로 저장합니다.

이미지가 성공적으로 저장되면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

참고: 이 함수는 메타 객체 시스템과 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.