SyntaxFix
Write A Post
Hire A Developer
Questions
You can call qApp.exit();. I always use that and never had a problem with it.
qApp.exit();
If you application is a command line application, you might indeed want to return an exit code. It's completely up to you what the code is.