I've been trying to write an app that does some basic web processing, and I'm using the QNetworkAccessManager. It's all working well, but when a connection changes, the QNAM drops it's bundle, and returns 'host not found'. I can replicate with a simple app as such:
_manager = new QNetworkAccessManager(this);
_reply = _manager->get(QNetworkRequest(url));
connect(_reply, SIGNAL(finished()), this, SLOT(reply_finished()));
QString data = _reply->readAll();
qDebug() << "Data: " << data;
qDebug() << "Error: " << _reply->errorString();
_reply = NULL;
_manager = NULL;
When I run this app, it works fine at first, connects up the first time I push the button, and shows the expected data. Then I went to connections on the n8, and disconnected the WLAn access point. Then I switched back to the app and tried pressing the button again, and the error was 'host not found'. Then I went to connection manager and reconnected the WLan manually, and still the button gave 'host not found'.
Is this expected, and is there some explicit call that needs to be used to allow the QNAM to change connections?