En esta página

QRemoteObjectPendingCall Class

Encapsula el resultado de una llamada a un método asíncrono. Más información...

Encabezado: #include <QRemoteObjectPendingCall>
CMake: find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects)
qmake: QT += remoteobjects
Heredado por:

QRemoteObjectPendingCallWatcher y QRemoteObjectPendingReply

Tipos públicos

enum Error { NoError, InvalidMessage }

Funciones públicas

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

Descripción detallada

Documentación sobre los tipos de miembro

enum QRemoteObjectPendingCall::Error

Este tipo de enumeración especifica los posibles valores de error de una llamada remota:

ConstanteValorDescripción
QRemoteObjectPendingCall::NoError0No se ha producido ningún error.
QRemoteObjectPendingCall::InvalidMessage1El estado de error predeterminado antes de que finalice la llamada remota.

Documentación de la función miembro

QRemoteObjectPendingCall::Error QRemoteObjectPendingCall::error() const

Devuelve el error, si lo hay, de la llamada remota.

bool QRemoteObjectPendingCall::isFinished() const

Devuelve «true» si la llamada remota ha finalizado; en caso contrario, devuelve «false».

Una llamada finalizada incluirá un « returnValue » o un « error ».

QVariant QRemoteObjectPendingCall::returnValue() const

Devuelve el valor de retorno de la llamada remota.

returnValue solo será válido cuando la llamada remota haya finalizado y no haya ningún « error».

bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)

Bloquea durante un máximo de timeout milisegundos, hasta que finalice la llamada remota.

Devuelve true si se realiza correctamente; en caso contrario, devuelve 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.