I am a bit confused.
How can I call the quit() or exit without the object? Where to quit? Inside the slot?

What I have now is something like:
Qt Code:
  1. void Report::test()
  2. {
  3.  
  4. QNetworkAccessManager * manager = new QNetworkAccessManager();
  5. QNetworkConfigurationManager config_manager;
  6. manager->setConfiguration(config_manager.defaultConfiguration());
  7. connect( manager, SIGNAL( finished( QNetworkReply* ) ), this, SLOT( webReportGenerateFinished(QNetworkReply*) ));
  8. QNetworkReply *reply = manager->get(QNetworkRequest(QUrl("http://192.168.0.199/webreport/shift.php?title=ShiftReport&fromdate=2012-01-03&todate=2012-01-03&shift[]=2&emp[]=1&stationNo=1&lang=1&format=1&rounddp=1")));
  9.  
  10. loop.exec()
  11. }
  12.  
  13. void Report::webReportGenerateFinished(QNetworkReply* reply)
  14. {
  15. cout<<"RM generate finished!"<<endl;
  16. ..
  17. ..
  18. ..// call loop.quit() here??? Do not have the loop object actually....
  19.  
  20. qDebug("RM generate finished!");
  21. }
To copy to clipboard, switch view to plain text mode