html in qt widget?
-
QTextDocumentsupports 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'ssetTextorQTextEdit'ssetHtmlmethod.
If the html code is more complicated than just rich text, or you need some html features thatQTextDocumentdoesn't support, then you can useQWebEngineViewinQt WebEnginemodule.