I want to find alternative for cin >>
#include <QDebug>
#include <QTextStream>
#include <QString>
int main(){
qDebug() << "Test start";
QTextStream in(stdin);
QString qstr;
qstr = in.readLine();
qDebug() << "Test end";
}
Also I tried
in >> qstr;
But nothing changed. Console:
So, I input for infinitive and "Test End" isn't coming, help me please guys!