I set a proxy for QNetworkManager:
QString name = ui->proxyAddressLineEdit->text(); quint16 port = ui->proxyPortSpinBox->value(); QString user = ui->proxyUserLineEdit->text(); QString pass = ui->proxyPasswordLineEdit->text(); proxy.setHostName(name); proxy.setPort(port); proxy.setUser(user); proxy.setPassword(pass); manager->setProxy(proxy); connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(replyFinished(QNetworkReply *)));
I get the page:
manager->get(QNetworkRequest(QUrl(urlString)));
Question! How to find out if a connection to the proxy was successfully established? If it was not, the pages are not loaded, as it should, but how to check it programmatically?