Quote Originally Posted by Cayan View Post
Qt Code:
  1. exit ( 0 );
To copy to clipboard, switch view to plain text mode 
That's a bad way to exit a GUI app. If you need a pointer to your application use QCoreApplication::instance() or the short hand qApp.