I want to do Http Post and retry if in case some error has occured.

Qt Code:
  1. HttpEngine::HttpEngine()
  2. {
  3. nwAccMan = new QNetworkAccessManager(this);
  4. connect(nwAccMan, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
  5. QNetworkProxy proxy(QNetworkProxy::HttpProxy, "192.168.1.111", 810, QString("TTR"), QString());
  6. nwAccMan->setProxy(proxy);
  7. nwAccMan->post(QNetworkRequest(QUrl("https://something.com/fll/browseFolder?")), QByteArray("uid=test2_sdaee169&pwd=pass&p=%2f%2f"));
  8. }
  9.  
  10. void HttpEngine::replyFinished(QNetworkReply * reply)
  11. {
  12. QByteArray data = reply->readAll();
  13. qDebug() << data;
  14. }
To copy to clipboard, switch view to plain text mode 

In the above code, if in case the reply has some error, I need to try to resend request till a timer timeout with interval of 5 seconds. How can I achieve this ?

Thank you.