[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: Re: [Kde-bindings] Printing to the console
From: Pau Garcia i Quiles <pgquiles () elpauer ! org>
Date: 2007-06-06 16:40:31
Message-ID: 20070606184031.o92x0861igqo44ck () www ! elpauer ! org
[Download RAW message or body]
Quoting Chris Gow <sniffy@rogers.com>:
> Hello:
>
> I usually print to the console for temporary debugging messages,
> I've noticed that when I run a Qt/ruby program that output to the
> console is blocked until the application exits. What is the correct
> way to log messages?
Do you mean "log" as in log4java? You have log4r
(http://log4r.sourceforge.net/)
If you mean "log" as in "print temporary messages" when something
happens, you need to "join" the Qt event-loop. For instance, print in
a slot, or have a Qt::Timer to print, or something like that. Whatever
is after the app.exec() runs after app.quit().
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic