The QNetworkAccessManager class allows the application to send network requests and receive replies.
QNetworkReply * get(const QNetworkRequest &request)
void setCache(QAbstractNetworkCache *cache)
The QNetworkDiskCache class provides a very basic disk cache.
void setCacheDirectory(const QString &cacheDir)
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
QVariant attribute(QNetworkRequest::Attribute code) const
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
@ SourceIsFromCacheAttribute
@ CacheLoadControlAttribute
void setAttribute(Attribute code, const QVariant &value)
QUrl(const QString &url, ParsingMode parsingMode)
The QVariant class acts like a union for the most common Qt data types.
QNetworkRequest request2(QUrl(QString("http://qt-project.org")))
QNetworkRequest request(QUrl(QString("http://qt-project.org")))
[0]
QNetworkAccessManager * manager
[0]
void replyFinished(QNetworkReply *reply)
[1]
QNetworkDiskCache * diskCache