- Qt 6.11
- Qt 3D
- C++ Classes
- Qt3DRender (Deprecated)
- QRenderCaptureReply
- Qt 6.11.0 Reference Documentation

# Qt3DRender::QRenderCaptureReply Class

class Qt3DRender::QRenderCaptureReply

Receives the result of render capture request. More...

Header: | `#include <Qt3DRender/QRenderCaptureReply>`
CMake: | `find_package(Qt6 REQUIRED COMPONENTS 3drender)` `target_link_libraries(mytarget PRIVATE Qt6::3drender)`
qmake: | `QT += 3drender`
In QML: | RenderCaptureReply
Inherits: | QObject
Status: | Deprecated

- List of all members, including inherited members

## Properties

- captureId : const int
- complete : bool
- image : const QImage

## Public Functions

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

## Signals

void | completed()

## Detailed Description

An object, which receives the image from QRenderCapture::requestCapture.

## Property Documentation

### `[read-only]` captureId : const int

Holds the captureId, which was passed to the renderCapture.

Access functions:

int | captureId() const

### `[read-only]` complete : bool

Holds the complete state of the render capture.

Access functions:

bool | isComplete() const

Notifier signal:

void | completed()

### `[read-only]` image : const QImage

Holds the image, which was produced as a result of render capture.

Access functions:

QImage | image() const

## Member Function Documentation

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

Saves the render capture result as an image to fileName.

Returns true if the image was successfully saved; otherwise returns false.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.