Frederick Polgardy Jr wrote: > a.connect(a, SIGNAL("lastWindowClosed()"), w.fileQuit) I would write the above line like this (wordwrapped for reading): a.connect(a, SIGNAL("lastWindowClosed()"), KApplication.kApplication(), SLOT("quit()")) Isn't there a kApp global variable like there is qApp? Ciao, Gordon