
Originally Posted by
anda_skoa
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-
void MyApp::monitorWebServerTimeout()
{
m_reply->abort();
m_reply->deleteLater();
}
void MyApp::monitorWebServerTimeout()
{
m_reply->abort();
m_reply->deleteLater();
}
To copy to clipboard, switch view to plain text mode
Second-
void MyApp::monitorWebServerTimeout()
{
m_networkManager->deleteResource(m_request);
m_reply->abort();
m_reply->deleteLater();
}
void MyApp::monitorWebServerTimeout()
{
m_networkManager->deleteResource(m_request);
m_reply->abort();
m_reply->deleteLater();
}
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.
Bookmarks