[PyQt] About keyPressEvent

"Gustavo A. Dí­az" gustavo.diaz at gmail.com
Tue Aug 21 23:18:03 BST 2007


I am trying to catch the keyPressEvent of alt + esc combination with:

def keyPressEvent(self, event):
             if event.key() == QtCore.Qt.Key_Escape:

And this has no effect, the app closes anyway. What i want is to hide
the app and not close it.

What i am doing wrong?



/Gustavo A. Díaz/
*GDNet Projects*
www.gdnet.com.ar <http://www.gdnet.com.ar>
Gustavo A. Díaz
-------------- next part --------------
Skipped content of type multipart/related

More information about the PyQt mailing list