|
Well, setQuitOnLastWindowClosed(False) solved that problem now the
pressKeyEven works perfect: if event.key() == QtCore.Qt.Key_Escape and (event.modifiers() & QtCore.Qt.AltModifier): self.hide() Now, i used closeEvent to close my app from the systray, so i've implemented a new fuction for that. Thanks!! Rob Knapp escribió: What I suddenly think about is that you should try to catch some signal (I can't remember the name, but do read up on what signals and slots a QMainWindow/KMainWindow has) that is related to quitting the application. I seem to remember there are methods which get triggered at exit -- you could perhaps rewire them somehow. |
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
