Receives the result of render capture request. 更多...
| 头: | #include <Qt3DRender/QRenderCaptureReply> |
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| 实例化: | RenderCaptureReply |
| 继承: | QObject |
| 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.
[read-only]
captureId
: const
int
Holds the captureId, which was passed to the renderCapture.
访问函数:
| int | captureId () const |
[read-only]
complete
: const
bool
Holds the complete state of the render capture.
访问函数:
| bool | isComplete () const |
通知程序信号:
| void | completed () |
[read-only]
image
: const
QImage
Holds the image, which was produced as a result of render capture.
访问函数:
| QImage | image () const |
[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.
注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .