PDA

View Full Version : QTextEdit wrong color



thomaspu
17th January 2008, 22:47
Ok, how come when I insert:
<span style="background-color: #FFFF00">You
can highlight your text any color you like.</span>

into a QTextEdit by its insertHtml() method that the next time I insert plaintext with insertPlainText( "my text") "my text" now also has the same background color as the previous Html-inserted text? Is there some way to make QTextEdit reset to default colors before inserting plaintext?

Paul

wysota
18th January 2008, 00:36
You can try to change it to plain text mode manually. But I'd say that this is a bug. Which Qt version are you using?

thomaspu
18th January 2008, 01:36
Qt 4.3.3 open-source edition.

thomaspu
18th January 2008, 05:35
This is a confirmed Trolltech bug in Qt 4.3.3
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=175454

Paul