In my case, I created an array of QNetworkAccessManager and QNetworkReply, I had parallel lines of loading execution, and I needed to send everyone's progress to the corresponding progress indicator.
So, I send a response signal [i] to the slot (bar ()), and in the slot I used a QNetworkReply object that points to the sender
void MyClass::foo() { QNetworkAccessManager *manager[uploadLimit]; QNetworkReply *reply[uploadLimit]; reply[i] = manager[i]->post(request, multiPart);
I deleted unnecessary lines, this is not working code, I think it makes sense.
source share