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

  • 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.

Obsolete Members for QRenderCaptureReply

The following members of class QRenderCaptureReply are deprecated. We strongly advise against using them in new code.

Obsolete Member Function Documentation

 
void QRenderCaptureReply::saveToFile(const QString &fileName) const

This function is deprecated. We strongly advise against using it in new code.

Saves the render capture result as an image to fileName.

Deprecated in 5.9. Use saveImage().

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