Auf dieser Seite

QRemoteObjectPendingCall Class

Kapseln das Ergebnis eines asynchronen Methodenaufrufs. Mehr...

Header: #include <QRemoteObjectPendingCall>
CMake: find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects)
qmake: QT += remoteobjects
Vererbt an:

QRemoteObjectPendingCallWatcher und QRemoteObjectPendingReply

Öffentliche Typen

enum Error { NoError, InvalidMessage }

Öffentliche Funktionen

QRemoteObjectPendingCall::Error error() const
bool isFinished() const
QVariant returnValue() const
bool waitForFinished(int timeout = 30000)

Detaillierte Beschreibung

Dokumentation zum Mitgliedstyp

enum QRemoteObjectPendingCall::Error

Dieser Enum-Typ gibt die möglichen Fehlerwerte für einen Remote-Aufruf an:

KonstanteWertBeschreibung
QRemoteObjectPendingCall::NoError0Es ist kein Fehler aufgetreten.
QRemoteObjectPendingCall::InvalidMessage1Der Standard-Fehlerstatus vor Abschluss des Remote-Aufrufs.

Dokumentation der Member-Funktionen

QRemoteObjectPendingCall::Error QRemoteObjectPendingCall::error() const

Gibt den Fehler des Remote-Aufrufs zurück, falls vorhanden.

bool QRemoteObjectPendingCall::isFinished() const

Gibt „true“ zurück, wenn der Remote-Aufruf abgeschlossen ist, andernfalls „false“.

Ein abgeschlossener Aufruf enthält entweder ` returnValue ` oder ` error`.

QVariant QRemoteObjectPendingCall::returnValue() const

Gibt den Rückgabewert des Remote-Aufrufs zurück.

`returnValue` ist nur gültig, wenn der Remote-Aufruf abgeschlossen ist und keine ` error`s vorliegen.

bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)

Blockiert für bis zu timeout Millisekunden, bis der Remote-Aufruf abgeschlossen ist.

Gibt bei Erfolg „ true “ zurück, andernfalls „ false “.

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