I’m new to Qt. I just installed Qt creator and created my first console application (left all in default).
#include <QCoreApplication>
#include <QDebug>
#include <QString>
#include <QTextStream>
void do_qt(){
QTextStream qin(stdin);
QTextStream qout(stdout);
qout << "Please enter your name: ";
QString name = qin.readLine();
qout << "Hello " << name;
}
int main(int argc, char *argv[]) {
QCoreApplication a(argc, argv);
do_qt();
return a.exec();
}
When i run the application this is what i get in the application output
21:41:39: Démarrage de C:DEVQtcore_tutoqt6-e3qt6-e3buildDesktop_Qt_6_7_2_MinGW_64_bit-Debugqt6-e3.exe…
Please enter your name: Hello
it seems like the readLine() line is skipped
here is my kit selection window ( I left it in default)