From kde-devel Wed Dec 30 13:24:55 2009 From: Robin Atwood Date: Wed, 30 Dec 2009 13:24:55 +0000 To: kde-devel Subject: Re: Best widget for tailing log data? Message-Id: <200912302024.55513.robin () binro ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=126217955002420 On Wednesday 30 December 2009, Kevin Krammer wrote: > On Monday, 2009-12-28, Robin Atwood wrote: > > What do people think is the best widget for "tailing" logging output from > > a process? I looked at the numerous QText* widgets and QTextEdit seems a > > good bet. But what is best, using a QTextCursor to add lines to the end > > of the text and remove lines from the top, or keeping the log lines in an > > eternal stack (via QStringList) and updating the widget en masse? The > > amount of output will not normally be very large. > > In case you are running the process locally, couldn't you just use an > embedded Konsole widget? In principle, yes, but I have two output streams and I want to do some preprocessing before the lines are displayed. Cheers -Robin -- ---------------------------------------------------------------------- Robin Atwood. "Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling ---------------------------------------------------------------------- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<