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

Paul Miller paul at fxtech.com
Wed Apr 13 15:23:34 CEST 2011


On 4/13/2011 1:54 AM, Graeme Gill wrote:
> Hi,
> 	I'm sure that this has been raised before, but why doesn't
> a QT MSWin GUI application fix the stdin, stdout&  stderr to go to
> the console it's started from (when it's started from a console),
> so that it behaves the same as QT on other platforms (ie. Linux&  OS X) ?

This just isn't possible (easily) on Windows.

When I need to have a "command-line version" of a Windows program I have 
a completely separate console-only version that doesn't have the UI 
stuff in it. It's annoying but you'll pull your hair out trying to get 
it work "like Linux" trust me.



More information about the Qt-interest-old mailing list