From kde-core-devel Sun Oct 31 10:13:24 1999 From: Matt Koss Date: Sun, 31 Oct 1999 10:13:24 +0000 To: kde-core-devel Subject: QTextView issues X-MARC-Message: https://marc.info/?l=kde-core-devel&m=94136479830557 I have completely reworked logging for caitoo and now I use QTextView to display different colors in log. QTextView is a very nice widget, however I have to do one thing to make it usable. Caitoo log widget inherits QTabDialog, and both tabs contain QTextView. When I switched tabs, appended text to the other tab, the switched back, QTextView didn't redisplay correctly, but simply showed nothing. Only the next appending to QTextView in the displayed tab caused QTextView to repaint everything correctly. I don't know whether I am doing something wrong, or it is a bug, but I had to add another slot to LogWindow widget , which simply calls setText( text() ) each time I switch tabs. Some things that I miss, are append() method, like in QMultiLineEdit(), using setText( text() + string ) is ok, but not so convenient. Another thing that I need is to get a context of QTextView in non-richtext form, I mean as a plain text ( with tag information removed ). Is it possible, or it needs to be implemented ? Regards Matt -- Matej Koss e-mail: koss@post.sk Kosice ICQ# : 19344305 Slovakia