Make multiple asynchronous put/post/get requests using QNetworkAccessManager
-
Hi,
I am working on an app where in user should be able to start uploading or downloading multiple files or different types. These http requests should have no effect on UI of the app. Can somebody let me know how to do this in an optimized way? Would be better if you could name the classes as well or an example.
Thanks
-
QNetworkAccessManager is your way to go. It handles the requests asynchronously by default so there is no blocking on the GUI.
There are several examples on the web....but the "docs of QNAM":http://qt-project.org/doc/qt-5.0/qtnetwork/qnetworkaccessmanager.html#details should be already very clear.