maybe you have some more event loops running (perhaps a modal dialog?)
use a debugger and break your programm after that call to qApp->quit() to see where the controlflow is "locked"