In questa pagina

QRemoteObjectPendingCallWatcher Class

Fornisce un'API basata su QObject per monitorare QRemoteObjectPendingCall. Altro...

Intestazione: #include <QRemoteObjectPendingCallWatcher>
CMake: find_package(Qt6 REQUIRED COMPONENTS RemoteObjects)
target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects)
qmake: QT += remoteobjects
Eredita da:QObject e QRemoteObjectPendingCall

Funzioni pubbliche

bool isFinished() const
void waitForFinished()

Segnali

void finished(QRemoteObjectPendingCallWatcher *self)

Descrizione dettagliata

QRemoteObjectPendingCallWatcher fornisce un segnale che indica quando una chiamata in sospeso ( QRemoteObjectPendingCall ) è terminata, consentendo una gestione comoda e non bloccante della chiamata.

Documentazione delle funzioni membro

[signal] void QRemoteObjectPendingCallWatcher::finished(QRemoteObjectPendingCallWatcher *self)

Questo segnale viene emesso al termine della chiamata remota. ` self ` è il puntatore all'oggetto watcher che ha emesso il segnale. Una chiamata completata includerà un `returnValue` o un `error`.

bool QRemoteObjectPendingCallWatcher::isFinished() const

Restituisce true se la chiamata remota è terminata, false in caso contrario.

Una chiamata completata includerà un valore di ritorno (returnValue) o un errore.

void QRemoteObjectPendingCallWatcher::waitForFinished()

Blocca l'operazione fino al completamento della chiamata remota.

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