In questa pagina

Qt3DRender::QRenderCaptureReply Class

class Qt3DRender::QRenderCaptureReply

Riceve il risultato della richiesta di acquisizione del rendering. Altro...

Intestazione: #include <Qt3DRender/QRenderCaptureReply>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
In QML: RenderCaptureReply
Eredita da: QObject
Stato: Obsoleto

Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.

Proprietà

Funzioni pubbliche

int captureId() const
QImage image() const
bool isComplete() const
bool saveImage(const QString &fileName) const

Segnali

void completed()

Descrizione dettagliata

Un oggetto che riceve l'immagine da QRenderCapture::requestCapture.

Documentazione delle proprietà

[read-only] captureId : const int

Contiene il captureId, che è stato passato alla funzione renderCapture.

Funzioni di accesso:

int captureId() const

[read-only] complete : bool

Contiene lo stato completo della cattura del rendering.

Funzioni di accesso:

bool isComplete() const

Segnale di notifica:

void completed()

[read-only] image : const QImage

Contiene l'immagine ottenuta tramite la cattura del rendering.

Funzioni di accesso:

QImage image() const

Documentazione delle funzioni membro

[invokable] bool QRenderCaptureReply::saveImage(const QString &fileName) const

Salva il risultato della cattura del rendering come immagine all'indirizzo fileName.

Restituisce true se l'immagine è stata salvata correttamente; in caso contrario restituisce false.

Nota: questa funzione può essere richiamata tramite il sistema dei meta-oggetti e da QML. Vedi 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.