My guess is that your code is correct with regards to establishing signal/slot connection, however compiler seems to be confused because of the connect()
function name and cannot resolve it properly: whether it is QObject::connect()
that takes at least 4 arguments, or it is another function with the same name, but different signature. I would suggest to try to explicitly tell compiler which function to use, i.e.:
QObject::connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));