Hi
I have simple QMainWindow with a QwebView on it. I want to restart after reaching a url. I use this code as my main function

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication a(argc, argv);
  4. int code = 0;
  5. do{
  6.  
  7. M w;
  8. w.show();
  9. code = a.exec();
  10. }while (code == 1000);
  11.  
  12. return a.exec();
  13. }
To copy to clipboard, switch view to plain text mode 

Somewhere in the code I call QApplication::exit(1000);
It is ok! but QWebView loadComplete event does not fire.
What is the problem??