Отчего ошибка не подскажете?
h
public slots:
void replyFinished(QNetworkReply *reply);
cpp
void HtmlHandler::process_url(QString url)
{
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply*)),
this, SLOT(replyFinished(QNetworkReply*)));
manager->get(QNetworkRequest(QUrl(url)));
qDebug() << url;
}
void HtmlHandler::replyFinished(QNetworkReply *reply)
{
QString str = reply->readAll();
qDebug() << str;
}
ошибки -
invalid use of incomplete type 'class QNetworkReply' QString str = reply->readAll();
forward declaration of 'class QNetworkReply' class QNetworkReply;