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.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to