-
-
Save bnoden/1b93cc2b0c2a588542b7ba91b3c56adb 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