Problem with std::cin and getting input from console generally
Unsolved
Qt 6
-
I'm new to QT so I tried creating Qt application on console that accepts input from user using std::cin but when I run it, It's either it got stuck in this phase or it skipped it, I've tried qinfo qin too, same issues. What could be the problem?
-
Hi and welcome to devnet,
What exactly did you try ?
Remember Qt is an async framework so just puttingstd::cin
won't work like that. -
-
Check the comments of David Faure on this stack overflow answer.
Check QSocketNotifier and QWinEventNotifier.