67715b0095
We need to redirect the console output to the parent process for GUI applications on Windows, otherwise we won't get any output if we start the application from the console, because the SUBSYSTEM of GUI applications is not CONSOLE by default. But we don't want to change the default behavior of Qt, so we control this feature through an environment variable "QT_WIN_DEBUG_CONSOLE". It accepts two string values: (1) "new": the application will try to create a separate console window and redirect everything (cin/cout/clog/cerr) to it. If you are running the application in an IDE, you won't be able to get anything from the IDE's console anymore. (2) "attach": the application will try to attach to the parent process's console, if there is one. When we attached to it successfully, we'll redirect everything to it. Change-Id: I3ef98f6c0603f64fcc4e8e974411c5ed83c5d36f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> |
||
---|---|---|
.github/workflows | ||
bin | ||
cmake | ||
coin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
libexec | ||
LICENSES | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
util | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.lgtm.yml | ||
.tag | ||
CMakeLists.txt | ||
conanfile.py | ||
config_help.txt | ||
configure | ||
configure.bat | ||
configure.cmake | ||
dependencies.yaml | ||
qt_cmdline.cmake | ||
sync.profile |