QRenderCaptureReply Class

class Qt3DRender::QRenderCaptureReply

Empfängt das Ergebnis einer Render-Capture-Anforderung. Mehr...

Kopfzeile: #include <Qt3DRender/QRenderCaptureReply>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
In QML: RenderCaptureReply
Vererbt: QObject
Status: Veraltet

Eigenschaften

Öffentliche Funktionen

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

Signale

void completed()

Detaillierte Beschreibung

Ein Objekt, das das Bild von QRenderCapture::requestCapture empfängt.

Eigenschaft Dokumentation

[read-only] captureId : const int

Enthält die captureId, die an das renderCapture übergeben wurde.

Zugriffsfunktionen:

int captureId() const

[read-only] complete : const bool

Enthält den vollständigen Status der Rendererfassung.

Zugriffsfunktionen:

bool isComplete() const

Benachrichtigungssignal:

void completed()

[read-only] image : const QImage

Enthält das Bild, das als Ergebnis der Rendererfassung erzeugt wurde.

Zugriffsfunktionen:

QImage image() const

Dokumentation der Mitgliedsfunktionen

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

Speichert das Rendering-Ergebnis als Bild auf fileName.

Gibt true zurück, wenn das Bild erfolgreich gespeichert wurde; andernfalls wird false zurückgegeben.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe 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.