Skip to content

Instantly share code, notes, and snippets.

@wimleers
Created December 21, 2010 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wimleers/750179 to your computer and use it in GitHub Desktop.
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).
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