I'm trying to access some url using QNetworkAccessManager
and QNetworkRequest
. Here is part of my code:
nam = new QNetworkAccessManager();
rep = nam->put(QNetworkRequest(myURL), myFile);
Sometimes it takes too long to establish the connection (because of some network related problems).
It there any way to change default connecting timeout for QNetworkAccessManager
?