Skip to content

Instantly share code, notes, and snippets.

@bnoden
bnoden / gist:1b93cc2b0c2a588542b7ba91b3c56adb
Created March 7, 2017 11:39 — forked from wimleers/gist:750179
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;
}