QRenderCaptureReply Class

( Qt3DRender::QRenderCaptureReply )

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

頭: #include <Qt3DRender/QRenderCaptureReply>
qmake: QT += 3drender
Since: Qt 5.8
實例化: RenderCaptureReply
繼承: QObject

特性

公共函數

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

信號

void completeChanged (bool isComplete )
void completed ()

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

Receives the result of render capture request.

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

成員函數文檔編製

[signal] void QRenderCaptureReply:: completeChanged ( bool isComplete )

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.

該函數在 Qt 5.9 引入。

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .