Do i need set QNetworkAccessManager on each http request , or one in asingletone



  • Hello all
    im using singleton http class that handle all the http/s requests.
    im setting QNetworkAccessManager once in the constructor. but i got to see some source codes that set the QNetworkAccessManager
    on each request. im confused here . im using Qt 4.8



  • You only need a single instance of QNetworkAccessManager. It can handle multiple requests at the same time.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.