zuko
29th March 2012, 21:50
Hi
My GUI application compiled in release or/and debug modes start with 'qtcreator_process_stub.exe' additional and unnecessary console window. When I close GUI, then 'Press <RETURN> to close this window...' message appears in console window. When I close console window, then both windows will be closed (GUI and console).
Why this console windows is visible, and what can be a reason for this behavior? Other GUI projects are launched properly (there are no console windows), which means that issue is directly in my project, but maybe some of you had a similar issue?
Compilation: QT 4.8.0/MinGW/Windows XP
My project file:
QT += core gui sql
#CONFIG += qtestlib
CONFIG -= app_bundle
CONFIG -= console
win32 {
TARGET = Project_win
}
unix {
TARGET = Project_unix
}
TEMPLATE = app
win32 {
LIBS += -lodbccp32 -ladvapi32 -luser32
}
unix {
LIBS += -lodbc -lodbcinst
}
SOURCES += main.cpp\
MainWindow.cpp \
....
HEADERS += MainWindow.h \
...
FORMS += MainWindow.ui \
AboutDialog.ui \
....
OTHER_FILES += \
sqleditor/SQLTypes \
sqleditor/SQLKeywords \
sqleditor/SQLFunctions
RESOURCES += \
Icons.qrc \
sqleditor/Tags.qrc \
drivers/sybase/InternalProcedures.qrc \
components/stylescomponent/StylesComponent.qrc
RC_FILE += \
res/appIcon.rc
My GUI application compiled in release or/and debug modes start with 'qtcreator_process_stub.exe' additional and unnecessary console window. When I close GUI, then 'Press <RETURN> to close this window...' message appears in console window. When I close console window, then both windows will be closed (GUI and console).
Why this console windows is visible, and what can be a reason for this behavior? Other GUI projects are launched properly (there are no console windows), which means that issue is directly in my project, but maybe some of you had a similar issue?
Compilation: QT 4.8.0/MinGW/Windows XP
My project file:
QT += core gui sql
#CONFIG += qtestlib
CONFIG -= app_bundle
CONFIG -= console
win32 {
TARGET = Project_win
}
unix {
TARGET = Project_unix
}
TEMPLATE = app
win32 {
LIBS += -lodbccp32 -ladvapi32 -luser32
}
unix {
LIBS += -lodbc -lodbcinst
}
SOURCES += main.cpp\
MainWindow.cpp \
....
HEADERS += MainWindow.h \
...
FORMS += MainWindow.ui \
AboutDialog.ui \
....
OTHER_FILES += \
sqleditor/SQLTypes \
sqleditor/SQLKeywords \
sqleditor/SQLFunctions
RESOURCES += \
Icons.qrc \
sqleditor/Tags.qrc \
drivers/sybase/InternalProcedures.qrc \
components/stylescomponent/StylesComponent.qrc
RC_FILE += \
res/appIcon.rc