[PyQt] About keyPressEvent

Henrik Pauli henrik.pauli at gmail.com
Wed Aug 22 00:28:59 BST 2007


Off the top of my head, and as such it could be completely wrong:
WDestructiveClose?

On 8/22/07, "Gustavo A. Dí­az" <gustavo.diaz at gmail.com> wrote:
>
>  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
> [image: Gustavo A. Díaz]
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070822/c5adfc23/attachment.html


More information about the PyQt mailing list