Solved Close console app without pressing button
-
Hi,
Is there a way to close a console app without having to press a key ?
Or start it with no window ?when qApp.close() is called my app quits but i need to push a kay to close the console window.
-
@LeLev
If you are running within Qt Creator and you don't need to input anything to your program, you can Select Projects > Build & Run > Run and uncheck "Run in terminal"
-
hi
@aha_1980 said in Close console app without pressing button:
If you are running within Qt Creator
thx, this will still work if i deploy the application ?
-
@LeLev Why don't you try it? :)
The checkbox does not change your program, it just changes the way Qt Creator runs it.
-
I thought it was useless to mention that i will test it now.
@aha_1980 said in Close console app without pressing button:
The checkbox does not change your program, it just changes the way Qt Creator runs it.
Thank you