PyQT, Sharp Zaurus and color in the QTextBrowser
sybrenUSE at YOURthirdtower.imagination.com
Tue Jul 15 02:21:59 CEST 2003
Sybren Stuvel enlightened us with:
> Al least, that's the way I see it. I dont't know Trolltech's
> intentions. I'll check out the docs.
Ok, here's the scoop:
Using QTextEdit as a Display Widget
QTextEdit can display a large HTML subset, including tables and images.
The text is set or replaced using setText() which deletes any existing
text and replaces it with the text passed in the setText() call. If you
call setText() with legacy HTML (with setTextFormat(RichText) in force),
and then call text(), the text that is returned may have different
markup, but will render the same.
So that's it. A large HTML subset, which could mean anything. Oh well,
just stick to double-quotes and we'll be fine ;-)
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
More information about the Python-list