How to get QIODevice-like signals for console input (stdin)?
<p>I'm writing console app, based <code>QCoreApplication</code>, and I want to get signals, when user input something into stdin (whole line at once or by characters, it is not important for my app).</p>

<p><code>QFile</code> not emit signals according to documentation, so any ideas how to get signal if user put in something to <code>stdin</code>?</p>

<p>At now I'm working with qt 4.8.7/linux/amd64, but I want port this code to macosx and windows in the future.</p>

<p><strong>Update</strong></p>

<p>I found solution that should work on *nix based <code>OS</code>, like <code>linux</code> and <code>mac os x</code>:</p>

<p><a href="https://gist.github.com/gjorquera/2576569" rel="nofollow">https://gist.github.com/gjorquera/2576569</a></p>

<p>But what about windows, would it also with with <code>QSocketNotfier</code>? </p>