QRenderCaptureReply Class

class Qt3DRender ::QRenderCaptureReply

Receives the result of render capture request. 更多...

头: #include <Qt3DRender/QRenderCaptureReply>
qmake: QT += 3drender
Since: Qt 5.8
实例化: RenderCaptureReply
继承: QObject

该类在 Qt 5.8 引入。

特性

公共函数

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

信号

void completed ()

详细描述

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

特性文档编制

captureId : const int

Holds the captureId, which was passed to the renderCapture.

访问函数:

int captureId () const

complete : const bool

Holds the complete state of the render capture.

访问函数:

bool isComplete () const

通知程序信号:

void completed ()

image : const QImage

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

访问函数:

QImage image () const

成员函数文档编制

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.

注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .

该函数在 Qt 5.9 引入。