Search code examples
c++htmluser-interfaceqtqt4

Displaying (rendering) HTML from a string in QT


I have html in a QString, what widget can I use to display it? (QWebView is not necessary as I dont access Internet)


Solution

  • QWebViews setHtml():

    The QWebView class provides a widget that is used to view and edit web documents.

    In Qt QWebView is the widget that renders pages for you - if you don't need the networking features it provides, simply don't use them.