To add to what ChrisW67 said, you can get the reply pointer inside of the doStuff() slot as follows:

QNetworkReply* reply = dynamic_cast<QNetworkReply*>(sender());