html in qt widget?
-
QTextDocument
supports HTML4 markup, you can read this:
https://doc.qt.io/qt-6/richtext-html-subset.html
The simplest way to show html content in Qt Widget would be usingQLabel
'ssetText
orQTextEdit
'ssetHtml
method.
If the html code is more complicated than just rich text, or you need some html features thatQTextDocument
doesn't support, then you can useQWebEngineView
inQt WebEngine
module.