En esta página

QRemoteObjectPendingCall Class

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

Cabecera: #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 de los tipos de miembros

enum QRemoteObjectPendingCall::Error

Este tipo enum especifica los posibles valores de error para una llamada remota:

ConstanteValorDescripción
QRemoteObjectPendingCall::NoError0No se ha producido ningún error.
QRemoteObjectPendingCall::InvalidMessage1El estado de error por defecto antes de finalizar 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, false en caso contrario.

Una llamada finalizada incluirá un returnValue o error.

QVariant QRemoteObjectPendingCall::returnValue() const

Devuelve el valor de retorno de la llamada remota.

returnValue sólo será válido cuando la llamada remota haya finalizado y no haya errors.

bool QRemoteObjectPendingCall::waitForFinished(int timeout = 30000)

Se bloquea durante un máximo de timeout milisegundos, hasta que finaliza la llamada remota.

Devuelve true en caso de éxito, false en caso contrario.

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