I have a QTextEdit
box that displays text, and I'm able to set The color of the text for different lines of text in the same QTextEdit
box that I want to be (i.e. line can be 1 red, line 2 can be black, etc.)
Is this possible in the QTextEdit
box? If not, what is the easiest way to get this behavior?
Thank you.
For example, use the text used as HTML:
< Code> textEdit-> setHtml (text);
Where text is a HTML formatted text that includes color lines and etc.
Comments
Post a Comment