F
F
fapchat2021-01-01 23:43:01
Qt
fapchat, 2021-01-01 23:43:01

How to make console applications with input work fine on qt creator?

When I run the application on qt creator, it compiles for me, it requires me to enter a number.

23:04:42: Starting /home/user/Qt/projects/build-untitled1-Desktop_Qt_6_2_1_GCC_64bit-Debug/untitled1 ...
Enter a number:

After I enter the number (+ press enter), nothing happens... no output.
61d0bcbf5cb96952032194.png
UPD: after entering, in my program, I immediately get an output likestd::cout << a;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fapchat, 2021-01-02
@fapchat

In general, check the "run in console" box.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question