Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtWebkit 4.8.4 not load Javascript
QtWS25 Last Chance

QtWebkit 4.8.4 not load Javascript

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 990 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adrian
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Hi,

      Do you have Java enabled within QWebSettings?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved