From 9b4e68dd842618ab96f8a63f75ee65f5756283b7 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Fri, 3 Dec 2021 17:57:21 +0100 Subject: [PATCH] Doc: Describe creating GUI apps and app bundles using CMake The default behavior is opposite from when using qmake. Task-number: QTCREATORBUG-26616 Change-Id: I9ec0f1a961e8d0cb25957dddcceec79cffbf292b Reviewed-by: Eike Ziller --- .../src/howto/creator-only/qtcreator-faq.qdoc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc b/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc index 26fcb631b6b..03f91f65fef 100644 --- a/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc +++ b/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc @@ -266,8 +266,16 @@ \b {On Windows:} Output is displayed differently for \e{console applications} and \e{GUI applications}. - The setting \c {CONFIG += console} in the .pro file specifies that the - application is built as a console application using some other runtime. + For qmake projects, the \c {CONFIG += console} setting in the .pro file + specifies that the application is built as a console application using + some other runtime. + + This is the standard behavior for CMake projects. To create a GUI + application on Windows or an application bundle on \macos, you must + specify the \c WIN32 or \c MACOSX_BUNDLE property for the + \l{https://doc.qt.io/qt-6/qt-add-executable.html}{qt_add_executable} + command in the CMakeLists.txt file. + When you run a console application, you can view the output in the console window of the calling application. If the calling application is a GUI application (for example, a release-built