[Interest] Windows application runs with console window
Igor Mironchik
igor.mironchik at gmail.com
Thu Sep 5 22:26:23 CEST 2013
Hi.
> You can check this:
> 1) Are you sure you do not have CONFIG += console somewhere?
I'm abolutely sure. There is no CONFIG += console in my project files
within my app.
> 2) Go to the "Projects" view, look at run settings in your kit. There
> is a checkbox "Run in terminal" which activates a console. I'm using
> Qt Creator 2.6.0, so maybe the GUI has changed and it's not exactly at
> the same place.
I don't use QtCreator for building and running app. I use qmake + jom in
console.
> You can also call FreeConsole() from <windows.h> in your main
> function, this removes the console under windows. Normally it's only
> necessary if you configured the project with CONFIG += console (useful
> for hybrid console/GUI apps)
I will take it in mind. Thanks.
By the way. I set icon to my application with
QApplication::setWindowIcon and it doesn't work too...
More information about the Interest
mailing list