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 : const 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 を参照してください。

© 2025 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.