Now I tried this:
Code:
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply*)),
this, SLOT(getData(QNetworkReply*)));
manager->get(QNetworkRequest(QUrl("http://qt.nokia.com")));
And in getData I have:
Code:
if (reply->error() == QNetworkReply::NoError) {
// do something
} else {
qDebug() << reply->errorString();
}
The error I get is this:
Host qt.nokia.com not found
If the device is not connected, I see "Connecting MyWLAN" appearing twice and then the afore mentioned error. If it's already connected to the WLAN, it just gives the error immediately.
Any help would be greatly appreciated.
Cheers