title: How to catch Ctrl+C on Windows and Linux with Qt
body: <p>I have Qt console server application. I wish when somebody presses Ctrl+C to quit my server correctly (calling destructors, etc.). I've read <a href="https://stackoverflow.com/questions/2300401/qapplication-how-to-shutdown-gracefully-on-ctrl-c">this</a>, however I want this to work on both Linux and Windows. How to do it?</p>