If you're talking about UNIX "kill" command, it send a SIGNAL to the application.
Some signals can be handled bou others cannot. Read here and here for more details.

If you handle a signal, you can send a quit event to QApplication