QByteArray data = reply->readAll();
connect(reply, &QNetworkReply::readyRead,[this](){ QByteArray data = reply->readAll(); // do something with the data here });
QString str = QString::fromUtf8(reply->readAll()); ui->textEdit->setText(str);
#include
QT += network