[Qt-interest] Ctrl-C exit of qapp
Volker Poplawski
volker at openbios.org
Sun Sep 26 18:07:11 CEST 2010
On Sunday 26 September 2010 07:07:02 emmanuel_mayssat at lynceantech.com wrote:
> Hello,
>
> I am trying to catch the Ctrl-C exception to close the qapplication I am
> running. How do i do that?
>
> try:
> qapp.exec_()
> except KeyboardInterupt as e:
> ...
> doesn't work!
>
> Please help,
Pressing Ctrl-c on the console usually sends signal SIGINT to the process.
You should look into signal handlers.
Hope this helps
More information about the Qt-interest-old
mailing list