[Qt-interest] Former Console App on Windows No Longer Shows Text
Jonathan Greig
redteam316 at gmail.com
Fri Jul 15 02:44:13 CEST 2011
http://doc.qt.nokia.com/latest/qtglobal.html#qInstallMsgHandler
I've found that this method only works for me under windows by doing:
App.exe > output.txt
Maybe you can also confirm this behavior. I sometimes mix SDL in my Qt
projects and SDL likes to dump stdout/stderr to a file. If
qInstallMsgHandler does work for you, please let me know as having to dump
output to a file with > is kinda slow.
- Swyped from my droid.
On Jul 14, 2011 1:07 PM, "William Gordon Rutherdale (rutherw)" <
rutherw at cisco.com> wrote:
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
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110714/d7629c6e/attachment.html
More information about the Qt-interest-old
mailing list