i am reading output from a process and printing it in a textedit, but the text is printed in big blocks every once in while instead of being added line-by-line continuously.
a model of this operation would look like this:
1. obect1(qthread) posts event with on line to base object
2. base object receives event and emits string as a signal
3. slot in gui object receives signal and appends the passed string to the textedit
i tried using QApplication::sendPostedEvents(); every three lines in object1(the thread) but that locks up the thread.
then i tried using kapp->processEvents(); in the gui thread everytime the slot receives a line (because i thought that maybe only the redraws of the textedit are queued), but then the whole app freezes
any ideas?
thanks!
Bookmarks