Hey guys,

I'm trying to exit my gui application instantly withought continuing the execution of my Mainwindow. I do not want to emit a Mainwindow close event. I was trying something like this but it seems to not be working:

Qt Code:
  1. //get application pointer
  2. QCoreApplication *qapp = QCoreApplication::instance();
  3. //shutdown application with error
  4. qapp->exit(EXIT_FAILURE);
To copy to clipboard, switch view to plain text mode 

this seems to be doing nothing thow :/

I even put a QThread::msleep(5000); after this to make sure it was no issue with the eventloop not being executed quickly enough before the debugger hits an error.