how to show html code as text in Qtextedit
-
wrote on 14 Jun 2021, 16:03 last edited by
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> -
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>
1/3