[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    QTextView issues
From:       Matt Koss <koss () post ! sk>
Date:       1999-10-31 10:13:24
[Download RAW message or body]


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic