[PyKDE] Quitting invokes crash handler

Gordon Tyler gordon at doxxx.net
Thu Aug 29 21:06:00 BST 2002


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




More information about the PyQt mailing list