[Qt-interest] Windows app opening dos box

Neville Dastur qt at dastur.me.uk
Fri Oct 9 18:22:20 CEST 2009


I have just tried release build aswell and the behaviour is the same.

My .pro file is below, which doesn't have the line you talk about.

Could it be anything to do with using -debug-and-release option in qt 
configure?

Thanks

# -------------------------------------------------
# Project created by QtCreator 2009-09-27T20:19:42
# -------------------------------------------------
QT += network \
sql \
svg \
xml \
testlib
TARGET = Application
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
MainViewWardDr.cpp
HEADERS += mainwindow.h \
MainViewWardDr.h \
ui_MainViewWardDr.h
FORMS += mainwindow.ui \
MainViewWardDr.ui


Justin Noel wrote:
> On Friday 09 October 2009 12:03:53 pm Neville Dastur wrote:
>   
>> I have developed an application using Qt Creator under Linux. I have
>> then compiled qt with vs2005 and installed the qt vs addin. The app
>> compiles successfully, but when I run the app a dos box opens first
>> aswell as the mainframe window. For a GUI app I obviously don't want the
>> dos box opening.
>>
>> I can't find anything on Google / QT Faqs about this. Hopefully I
>> haven't missed something obvious in the docs.
>>
>> Can anyone help?
>>     
>
> I'm not sure about how creator configures the .pro file, but you can remove 
> the line CONFIG+=console and the dos box will go away.
>
> It's common practice to scope that line to debug so you can see output for 
> broken signal/slot connections on windows. I would be willing to bet that 
> Creator does it that way. Are you sure you are building release binaries?
>
> --Justin
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   



More information about the Qt-interest-old mailing list