QNetworkReply* reply = manager.get(request); connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
QNetworkReply* reply = manager.get(request); connect(reply,&QNetworkReply::finished,[reply](){ // Do something with reply reply->deleteLater(); });In this example, a lambda function is used to handle the `finished()` signal emitted by the `reply` object. Once signal is handled, `deleteLater()` method is used to delete the `reply` object. Package Library: QT C++ Library.