[Qt-interest] Former Console App on Windows No Longer Shows Text

William Gordon Rutherdale (rutherw) rutherw at cisco.com
Thu Jul 14 20:07:36 CEST 2011


Hi.

I just noticed something with an app I wrote that runs on both Linux and
Windows.

It was originally a console app.  However, I needed to add a control
button, so I added minor gui control to it.  I thus took out the 'QT -=
gui' line from the .pro file and added some buttons.

The old version had command-line help and other console output, e.g.
when you run it with the -h switch.  This console output was produced
using qDebug().

The new version still does that on Linux.  However, when it runs on
Windows the console output has disappeared.

Is there any way to get it to put this output onto the console when it
is running under Windows?

-Will




More information about the Qt-interest-old mailing list