I have a Qt application, and when I run this application, there is a console opening behind it. In development it is nice because i see debug outputs on the console, but when I want to give this executable to the customer there should be no console window. how do I hide it?
(I am using Visual Studio 2008)
Go to:
Projects --> Run
and uncheckRun in terminal
checkboxYou can get rid of the console by calling:
This worked for me:
I needed to run an exe to monitor a file using
QFileSystemWatcher
so I used this:I would suggest to check the presence of the following line in your .PRO file :
If you can find it, remove it ! It should fix your issue !
Hope it helps !
It sounds like your linker configuration is incorrect. Right-click the project, Properties, Linker, System, SubSystem setting. Make sure "Windows" is selected, not "Console".
And, change main() to WinMain().
For those of you editing the .vcxproj directly, you want to add a
SubSystem
with the valueWindows
to yourLink
ItemDefinitionGroup
as follows: