Created
December 21, 2010 16:37
-
-
Save wimleers/750179 to your computer and use it in GitHub Desktop.
Wait for input by the user on stdin — the Qt way (and thus cross-platform).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QTextStream in(stdin); | |
forever { | |
QString line = in.readLine(); | |
if (!line.isNull()) | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment