QT console application and CTRL+C
Hello,
I'm writing qt server application and I need functions to handle SIGINT and SIGTERM signals. I've found functions watchUnixSignal() and unixSignal() which are members of QCoreApplication, but they are not described in the QT documentation. Do anyone know, why?
Re: QT console application and CTRL+C
If its not documented, it means its not meant to be used, and that it can change or get deleted in any future release.
Have a look at this to help you with your problem:
http://doc.qt.nokia.com/4.7/unix-signals.html
Re: QT console application and CTRL+C
I've found this manual about unix signals, but i need something, what will be able to handle signals in windows. Any ideas?
Re: QT console application and CTRL+C
you can use the signal() function and give it your signal handler:
http://msdn.microsoft.com/en-us/libr...=vs.71%29.aspx