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 Code:
  1. QT += core gui sql
  2. #CONFIG += qtestlib
  3. CONFIG -= app_bundle
  4. CONFIG -= console
  5.  
  6. win32 {
  7. TARGET = Project_win
  8. }
  9. unix {
  10. TARGET = Project_unix
  11. }
  12. TEMPLATE = app
  13. win32 {
  14. LIBS += -lodbccp32 -ladvapi32 -luser32
  15. }
  16. unix {
  17. LIBS += -lodbc -lodbcinst
  18. }
  19.  
  20. SOURCES += main.cpp\
  21. MainWindow.cpp \
  22. ....
  23. HEADERS += MainWindow.h \
  24. ...
  25. FORMS += MainWindow.ui \
  26. AboutDialog.ui \
  27. ....
  28.  
  29. OTHER_FILES += \
  30. sqleditor/SQLTypes \
  31. sqleditor/SQLKeywords \
  32. sqleditor/SQLFunctions
  33.  
  34. RESOURCES += \
  35. Icons.qrc \
  36. sqleditor/Tags.qrc \
  37. drivers/sybase/InternalProcedures.qrc \
  38. components/stylescomponent/StylesComponent.qrc
  39.  
  40. RC_FILE += \
  41. res/appIcon.rc
To copy to clipboard, switch view to plain text mode