Qt3DRender::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 |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
属性
公共函数
| int | captureId() const |
| QImage | image() const |
| bool | isComplete() const |
| bool | saveImage(const QString &fileName) const |
信号
| void | completed() |
详细说明
一个从QRenderCapture::requestCapture 接收图像的对象。
属性文档
[read-only] captureId : const int
存储传递给 renderCapture 的 captureId。
访问函数:
| int | captureId() const |
[read-only] complete : bool
保存渲染捕获的完整状态。
访问函数:
| bool | isComplete() const |
通知信号:
| void | completed() |
[read-only] image : const QImage
存储通过渲染捕获生成的图像。
访问函数:
| QImage | image() const |
成员函数文档
[invokable] bool QRenderCaptureReply::saveImage(const QString &fileName) const
将渲染捕获结果作为图像保存到fileName 。
如果图像保存成功,则返回 true;否则返回 false。
注意:此 函数可通过元对象系统以及从 QML 中调用。请参阅Q_INVOKABLE 。
© 2026 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.