Running a QT5.3 console application on OSX10.8.5. The application has a few threads working. However, when I CMD-Q the application the threads still keep on running. I have to kill the program in Activity Monitor. What is the correct way to exit a program including object deletion and thread quitting?

Cheers