April 2018
Beginner
714 pages
18h 21m
English
First, we posted the request and fetched the pointer to the QNetworkReply object. Then, we connected the reply's finished signal to the mapper's slot map(). Next, we called the setMapping() method of the mapper to indicate that the sender itself should be sent as the slot's argument. The effect is very similar to the direct use of the QNetworkAccessManager::finished(QNetworkReply *reply) signal, but this way, we can use multiple slots dedicated to different purposes (with a separate mapper corresponding to each slot), all served by a single QNetworkAccessManager instance.
Read now
Unlock full access