QtWebkit 4.8.4 not load Javascript



  • Hello,
    I have this enviorement:

    Qt 4.8.4
    arm-v4t-linux-gnueabi-gcc V 4.7.2

    I'm trying to run a program that load html webpage that contains javascript scripts into a webview conrol.
    The HTML code is loaded well but the javascript code is no loaded. Neither if I put only and alert javascript code.

    I'm running this code:

    i->myBrowser->page()->mainFrame()->evaluateJavaScript(“function abc(){alert(‘This page has finished loading!’);return ‘he’} abc();”);
    qDebug() << “NAME: “ << name.toString();

    And the output of debug is:
    ....
    -1.45215999014158e-58” NAME:
    “-1.45215999014169e-58” NAME:
    ....

    Could be this a Bug ?

    Thank you



  • Hi,

    Do you have Java enabled within QWebSettings?


Log in to reply
 

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