Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can i know if QNetworkAccessManager done processing all http requests?
Qt 6.11 is out! See what's new in the release blog

Can i know if QNetworkAccessManager done processing all http requests?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 758 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    im using QNetworkAccessManager in each httpClient object creation in my app and delete it after the HttpClass go out of stack, i have something like 300 http requests
    im doing in aloop , i know that from 4.8 the http requests are Multithreading so i have no fear to execute as meany as i like , and its working great .
    the problem is say how can i know when all the thread requests are done (all the 300 ) can i emit some signal ?
    this is the loop of the request , in side the http client there are the usual http signals

    @ QMapIterator<QString,QString> i(m_urlMap);
      
     while (i.hasNext())
     {
      i.next();   
      QString sUrl = i.value();;
       HttpClient* pHttpClient = new  HttpClient(m_pFileOutput,m_pMutex);
       bool bReturnInvokeHttpClient = false;
       bReturnInvokeHttpClient = pHttpClient->startRequest(sUrl);
       
      
     }@
    

    do i need manully keep track on each httpclient m when it done its job ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved