Quote Originally Posted by anda_skoa View Post
It is generally a good idea to read the documentation.
In tihs case it would have told you that deleteResource "Sends a request to delete the resource identified by the URL of request."
_
I know, I have gone through it, but I didn't understand where exactly to use in my code. I tried searching for some Qt examples in internet wherein this function could be used, but I didn't get any, so asked here. To be more precise, what could be the difference between my following 2 timeout functions-
First-
Qt Code:
  1. void MyApp::monitorWebServerTimeout()
  2. {
  3. m_reply->abort();
  4. m_reply->deleteLater();
  5. }
To copy to clipboard, switch view to plain text mode 

Second-
Qt Code:
  1. void MyApp::monitorWebServerTimeout()
  2. {
  3. m_networkManager->deleteResource(m_request);
  4. m_reply->abort();
  5. m_reply->deleteLater();
  6. }
To copy to clipboard, switch view to plain text mode 

I implemented them in my code but couldn't exactly understand the difference between the 2.