Solved how to show html code as text in Qtextedit
-
Hey, whenever I try to set text as HTML code in Qtextedit it changes that HTML code into HTML code result. So how can I show HTML source code to text edit...
Thanks in advance
Example: ui->textedit->settext("<strong>Html code</strong>");
Output: Html code Expected Output: <strong>Html code</strong> -
@UG-SEP
QTextEdit::setAcceptRichText(false)
and/orQTextEdit::setPlainText(yourText)
. -
Thanks a lot, @JonB I haven't think about this function.
One again thanks