aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2021-12-03 17:57:21 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2021-12-07 08:13:55 +0000
commit9b4e68dd842618ab96f8a63f75ee65f5756283b7 (patch)
tree76b72512685550f3d35e65b05ede7d98658e102c
parent02f93f68d64ea72e6cfd57ed2b14b344d26b05b0 (diff)
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 <eike.ziller@qt.io>
-rw-r--r--doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc12
1 files 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 26fcb631b6..03f91f65fe 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