[Interest] Windows application runs with console window
Guido Seifert
wargand at gmx.de
Sat Sep 7 20:47:00 CEST 2013
What a coincidence... Exactly today I found this on SO:
http://stackoverflow.com/questions/18666799/how-to-prevent-qmake-from-adding-the-console-subsystem-on-the-linker-command-lin#comment27503243_18666799
On Sat, 07 Sep 2013 10:17:03 +0300
Igor Mironchik <igor.mironchik at gmail.com> wrote:
>
> > I write an application.
> >
> > The common definitions in the project file are:
> >
> > TEMPLATE= app
> > TARGET= application
> > DESTDIR= ..
> > QT += core gui network sql widgets
> > CONFIG+= windows
> >
> > But when I run application I see the console (command prompt) window
> > within my application. Why?
> >
> > I use Qt 5.1.0,MSVC2012, Windows 7.
> >
>
> I have found the problem.
>
> In my project file there was such lines:
>
> debug {
> DEFINE+=DEBUG
> QT += testlib
> }
>
> When I've removed that lines command prompt window disappear.
>
> I've tried to change that lines to:
>
> CONFIG(debug) {
> DEFINE += DEBUG
> QT += testlib
> }
>
> But it doesn't help me. What is the problem? Thanks.
>
More information about the Interest
mailing list