Qt async call: how to run something after an async call has finished its job
Clash Royale CLAN TAG #URR8PPP Qt async call: how to run something after an async call has finished its job I have code like below which does an async call: QMetaObject::invokeMethod(this, "endSelectionHandling", Qt::QueuedConnection); I want to modify the code like this: QMetaObject::invokeMethod(this, "endSelectionHandling", Qt::QueuedConnection); // I want to add statements here which depend on the result of the above async call. // How can I wait for the above async call to finish its jobs? How can I wait for Qt asycn call to finish its job? Is there a better approach? If you want to wait right after the function call then why don't you call it directly i.e. blocking call? That would be the perfect solution in your case unless there's something in between that you want to do. – Azeem yesterday ...