I am trying to figure out how to properly exit and destroy all my classes if say an error happens.

Trying to make like a close the application if this message box pops up.

Doing this:
Qt Code:
  1. qApp->exec();
  2. return;
To copy to clipboard, switch view to plain text mode 

Works, but it leaves the Process in Task Manager alive just the window doesn't show up.