17 m_pnam =
new QNetworkAccessManager(
this);
18 connect(m_pnam, SIGNAL(finished(QNetworkReply*)),
19 this, SLOT(slotFinished(QNetworkReply*))
26 QNetworkRequest request(url);
27 QNetworkReply* pnr = m_pnam->get(request);
34 void Downloader::slotFinished(QNetworkReply* pnr)
36 if (pnr->error() != QNetworkReply::NoError) {
40 emit
done(pnr->url(), pnr->readAll());
void downloadProgress(qint64, qint64)
void download(const QUrl &)
Downloader(QObject *pobj=0)
void done(const QUrl &, const QByteArray &)