Downloading files in parallel

A very important note concerning QNetworkAccessManager is the fact that it works asynchronously. This means that you can post a network request without blocking the main event loop, and this is what keeps the GUI responsive. If you post more than one request, they are put in the manager's queue. Depending on the protocol used, they may be processed in parallel. If you are sending HTTP requests, normally up to six requests will be handled at a time. If more requests are queued, they will be automatically processed later. This will not block the application, as QNetworkAccessManager uses threads internally.

There is really no need to encapsulate QNetworkAccessManager in a thread; however, unfortunately, this unnecessary ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.