[Qt-interest] What makes an application show a console?

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Mon May 10 03:44:54 CEST 2010


-----Original Message-----
> Hello,
> 
> My GUI application also starts a cmd.exe window, along the window. While other qt 
> gui projects i create in qt creator (to compare) don't. What could be in the DNA 
> of my app to require that console?
> 
> don't tell me CONFIG -= console, as these other gui apps don't have it, and anyway 
> it doesn't change a dyme.
> 

Are you sure that you are using QApplication in your main.cpp?  

Also, my understanding is that Windows starts a short timer when your application starts.  If you do not create a window quickly enough, Windows assumes the app is console.  Do you have a particularly long initialisation?  

HTH





More information about the Qt-interest-old mailing list