html in qt widget?
-
wrote 21 days ago last edited by
Hi..
It is possible to insert any html code inside a Qt Widget application?,
for instance, i have a contact form's html block code, and i was wondering if there is some sort of way to embed it..thanks
-
wrote 21 days ago last edited by Bonnie
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.
1/2