[Qt-interest] stdout of MSWin GUI application run from console

Paul Miller paul at fxtech.com
Wed Apr 13 18:31:12 CEST 2011


On 4/13/2011 10:51 AM, Graeme Gill wrote:
> Paul Miller wrote:
>> This was my point. I only want the console output when the app is run
>> from a console. When run from the GUI, I don't want the console popping
>> up. I haven't been able to find a reliable way to make a Qt app on
>> Windows that behaves like a console app when run from the console (ie.
>> prints stuff to the console), and a GUI app when run from Explorer.
>
> Were the unreliable methods you've tried similar to the code I posted,
> or did they use a different approach ?

There were some similarities, but no not identical. I'm going to try it 
the next time I go back the my console app, and see if it all works by 
just passing a command-line switch to control the behavior.



More information about the Qt-interest-old mailing list