How to view load javascript and view html
-
i created "added" a QWebView named webview
and i want to display html in it,so i tried this
this is the html file@<!DOCTYPE html>
script type="text/javascript" src="d:/mathjax/MathJax.js?config=AM_HTMLorMML-full">[removed]
//d:/mathjax/MathJax.js is the file of the javascript file
<font size="2">
f(x)
<p>@i put it into a QString named str the way it is,
and add "" and "\n" when needed like before the "
then use
@ ui->webView->setHtml(str);@but it seems like the javascript file does not load
and is it possible to view it in QLabel