04-25-2013 04:24 AM
I am wondering what is the best way to use QNetworkAccessManager when the app need to make different requests to different URLs? All examples I have seen so far involve a single request.
The QNetworkAccessManager::finished() signal comes only with a QNetworkReply and if use the QNetworkReply finished() comes with no parameters, making it hard to associate a request with a response if there are multiple requests involved. I know that I can get the QNetworkRequest from the QNetworkReply and parse the URL, but I hope there is a more elegant way for this?
Or is there supposed to be an instance of a QNetworkAccessManager per every request type/URL that the app uses?
Any tips or patters that you guys use would be appreciated.
04-25-2013 05:07 AM