Well, then I have another one 
You will need to delete the reply object, otherwise you are leaking it.
One way to do that is to schedule its deletion in the slot connected to the finished signals
void MainWindow::resp(QNetworkReply *reply)
{
ui->edResponse->setText( ui->edResponse->toPlainText() + "\r\n" + responseData);
reply->deleteLater(); // schedule deletion when event loop continues event processing
}
void MainWindow::resp(QNetworkReply *reply)
{
QString responseData = QString::fromAscii(reply->readAll());
ui->edResponse->setText( ui->edResponse->toPlainText() + "\r\n" + responseData);
reply->deleteLater(); // schedule deletion when event loop continues event processing
}
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks