简体   繁体   中英

Suppressing the console window while running QT4 programs

I am trying to make an application using QT for C++ using codeblocks. Every time I run the application a command prompt window pops out followed by the gui for my application.

How do I suppress the command prompt window?

Here the possible answer

Just remove

CONFIG += CONSOLE

from your .pro file

Yet another option for Code::Blocks. In IDE menu

Project->Properties->Build Targets: change Type from "Console Application" to "GUI Application".

Found here and here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM