connect уже пробовали?
QEventLoop loop; QNetworkReply *reply; switch(t) { case GET: reply = netMan->get(req); break; case POST: reply = netMan->post(req, ""); break; case DELETE: reply = netMan->deleteResource(req); break; case PUT: reply = netMan->put(req, ""); break; } if (reply == nullptr) { qWarning("Reply is NULL"); delete reply; return QByteArray(); } QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); loop.exec();
bool QSignalSpy::wait() ?
Обсуждают сегодня