[Qt-interest] Supressing console
Daniel Franke
franke.daniel at gmail.com
Tue Mar 10 14:00:29 CET 2009
On Tuesday 10 March 2009 13:52:41 Juan D Guzman wrote:
> Ok here's a simple one for you that is stumping me. In VS my app
> compiles and runs fine without showing in console. However, in Qt
> Creator when I run the app it shows a console. All the preprocessor
> defs are the same and no matter what I try I can't get rid of the
> console. Any ideas?
Add 'CONFIG += windows' in your .pro file.
http://doc.trolltech.com/4.5/qmake-variable-reference.html#config
"windows The target is a Win32 window application (app only). The proper
include paths, compiler flags and libraries will automatically be added to
the project."
Cheers
Daniel
More information about the Qt-interest-old
mailing list