[Qt-interest] stdout of MSWin GUI application run from console
Rainer Wiesenfarth
Rainer.Wiesenfarth at inpho.de
Wed Apr 13 18:27:51 CEST 2011
Am 13.04.2011 17:56, schrieb Graeme Gill:
> Rainer Wiesenfarth wrote:
>> [...]
>> ... and back to the thread's subject: (MS) Windows GUI applications do
>> not use a console, fullstop. If you want Linux behavior, run Linux... ;-)
>
> Sorry, and here's me thinking that Qt is a cross platform library...
And maybe this is the reason why Qt does not offer a solution here.
There is no cross platform common behavior:
- A _Windows_ user assumes that a _GUI_ application, if by any weird
circumstances started from a console, detaches itself and runs "in
background" and independent of the console. Thus a GUI application that
tries to give Windows look-and-feel should not use a console on Windows.
- A _Linux_ user assumes that a _GUI_ application started from the shell
remains in the foreground and has stdin, stdout, and stderr connected to
the shell.
And, for completeness: for _console_ applications, both users assume
that the application does not use any GUI at all (probably does not even
need a device context or associated X-Display).
Writing cross platform GUI applications that act "native" on all
platforms means: Do not use stdin, stdout, and stderr. And that is, what
Qt supports... ;-)
Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth
--
Tel.: +49 (0)711 22 88-10 * Fax: +49 (0)711 22 88-111
Web: http://www.trimble.com/geospatial/ * http://www.inpho.de/
Trimble Germany GmbH * Branch office Stuttgart
Smaragdweg 1 * 70174 Stuttgart * Germany
Commercial register: HRB 83893, Darmstadt
Managing Directors: Dr. Frank Heimberg, Hans-Jürgen Gebauer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6050 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110413/c34201e1/attachment.bin
More information about the Qt-interest-old
mailing list