Skip to content

Instantly share code, notes, and snippets.

@bnoden
Forked from wimleers/gist:750179
Created March 7, 2017 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoden/1b93cc2b0c2a588542b7ba91b3c56adb to your computer and use it in GitHub Desktop.
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).
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