Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Creator no longer displays console output in Application Output window after Windows 10 1809 update

Tags:

qt

qt-creator

I'm running an application in debug with Qt 5.2.1 and Qt Creator 4.5.0. For many months this has been fine, and the console output is shown in the Application Output window. I applied the 1809 update to Windows this morning, and now I only see exception details in the output window, nothing else.

Interestingly, when I "Run in Terminal" the output is shown in the command window. It's also shown if I "Run" (ctrl-R) the application. It also seems to be OK when I run the tests for an application with a later version of the Qt framework (5.12.1, in my case).

Has anyone else experienced this? I'm not even sure where to start with fixing the problem.

EDIT: More information. I looked at the Qt 5.2.1 sources and saw that the qDefaultMessageHandler doesn't output the message if a console window is attached to the process (as you'd expect, for example if you selected the "Run in Terminal option"). If I call FreeConsole() at the beginning of my application, then the output appears as it used to in the Application Output window. This suggests that the update to Windows has caused a console window to be allocated to the debug process.

like image 886
Chris Chambers Avatar asked Oct 15 '25 18:10

Chris Chambers


1 Answers

Change the settings, Edit>Preference>Built&Run>General Tab> Default for run in terminal. choose those options as u wish.

u can individually change the settings for projects, Select Projects tab > Built & Run >Run >Run in terminal

like image 197
Shams313 Avatar answered Oct 18 '25 17:10

Shams313