It’s weird to show console in GUI application for no matter what platform.

For the qmake project, the relevant setting is:

CONFIG += console

CONFIG -= app_bundle

We have to remove the console and keep app_bundle for qmake variable CONFIG if we want to hide console when running the program.
For CMake project, it will create a console application by default.
If we want windows application, we have to add WIN32 or MACOSX_BUNDLE for add_executable.

add_executable( [WIN32] [MACOSX_BUNDLE]

               [EXCLUDE_FROM_ALL]

               source1 [source2 ...])

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Content Summary
: Input your strings, the tool can get a brief summary of the content for you.

X
0
Would love your thoughts, please comment.x
()
x