[Qt-interest] Different Text background color in QTextEdit
Hari Sundar
hsundar at gmail.com
Wed Aug 19 20:00:09 CEST 2009
Hi,
I am trying to use QTextEdit in the read only mode to display formatted log
messages for my program. For this purpose, I wish to add different lines
formatted differently and with different background colors based on the type
of message.
I tried to do this initially using HTML and stylesheet, but it appears that
CSS stylesheets are not fully supported. Specifically I was unable to get
background colors to work.
So, I switched to using QTextCharFormat / QTextFrameFormat etc ... to format
my text, but am unable to set background color even with this.
Is it possible ? What am I missing ? Alternatively is there any other widget
better suited for this task ?
thanks,
Hari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090819/b78d4e01/attachment.html
More information about the Qt-interest-old
mailing list