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">

    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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.