Hi!!

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

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

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?

Thanks

Cheers.

--
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar
Gustavo A. Díaz
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to