IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QRenderCaptureReply Class

Receives the result of render capture request.

This class was introduced in Qt 5.8.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QRenderCaptureReply Class

  • Header: Qt3DRender/QRenderCaptureReply

  • Since: Qt 5.8

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3drender)

    target_link_libraries(mytarget PRIVATE Qt6::3drender)

  • qmake: QT += 3drender

  • Inherited By:

  • Instantiated By: qml-qt3d-render-rendercapturereply.xml

  • Inherits: QObject

Detailed Description

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

Property Documentation

 

[read-only] captureId : const int

Holds the captureId, which was passed to the renderCapture.

Access functions:

  • int captureId() const

[read-only] complete : const bool

Holds the complete state of the render capture.

Access functions:

  • bool isComplete() const

Notifier signal:

  • void completed()

[read-only] image : const QImage

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

Access functions:

  • image() const

Member Function Documentation

 

[since 5.9] 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.

This function was introduced in Qt 5.9.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+