Stdin doesn't read
-
Hi. 👋
Standard input doesn't read my data.I tried existing solution from 3 May, but everything stood absolute the same.
Thank you and hope you soon. I have tu graduate this year, so I have ASAP to finish my project. 🙏
-
And I forgot to note that Mac OS 13.6 is my operating system.
-
@s_milena__97
Not that it matters here, but you includeQCoreApplication
but do not create an Qt application object, so this is not a Qt program.Where do you expect the application to read stdin from? You are running it from Qt Creator and lookng at Application Output pane, that is what it says, only somewhere to send application output. Does not accept input.
Either run your application outside Creator from a terminal and you will be able to enter input, or set Creator checkbox when running to request "Create a terminal from Creator when this runs".
P.S.
I tried existing solution from 3 May
Don't know what this means. Though it doesn't matter, solution is as above.
-
If you dont use any Qt GUI elements yet, you can add
CONFIG += console
to yourzdravosvetee.pro
file, go to your projects "Build and run" settings and check "Run in terminal" there.