KeyPressEvents are sent only to widgets therefore console applications won't receive them.
KeyPressEvents are sent only to widgets therefore console applications won't receive them.
Is there a good way to trap <control>-C so that I can at least shutdown the QLocalServer if they exit that way?
Currently, it works like this:
1. Start the program.
2. Hit Control-C to stop it.
3. Start it again, and I get a socket busy error.
4. Start it again and it works.
If I could somehow skip step 3, I'd be alright.
Karl
Use signal() or sigaction() depending on the system you are using.
KaptainKarl (29th December 2008)
Bookmarks