I have a Qt project. If I start my application using Qt Creator, I never seen any console window.(But the exe will be seen in the task manager).
But if i run the application exe directly, a console window is popping up and closing also.
I hide the console window by removing the CONFIG += console from the project.pro file. But this change the affecting the qDebug() logging. ie, nothing is added to the log file (okb file).
Development environent: Qt 4.7.3/Windows
When there’s no console window, all debug output is sent to debugger using
OutputDebugString. I.e. you can read it from debugger (visual studio express – “output” window using debugger), but you can’t redirect it to file by running something likeapp > 1.txt(because application without console technically has no stdout).Alternatively, you could install your own message handler for debugging message using qInstallMsgHandler and write your own logfile however you want.