How should I quit a Qt Program, e.g when loading a data file, and discovered file corruption, and user need to quit this app or re-initiate data file?
Should I:
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.