Is it possible to programmaticaly create a (long) string of HTML text and then load it in a QWebView widget?
I'd like to be able to do something like:
void WebBrowser::SetText(string sText)
{
ui->webView->setText(QString::fromUtf8(sText.c_str()));
}
but then of course the code above doesn't work because webView doesn't have a setText member function.
(I'm aware I could simply display HTML text in a label but I'd like to have some of functionality of QWebView to do things such as hypertext links to pages on the web, etc.)