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. QWebView can't display external image content set via javascript $(“#<node_name>”).html(&lt;html_content&gt;)
Forum Updated to NodeBB v4.3 + New Features

QWebView can't display external image content set via javascript $(“#<node_name>”).html(&lt;html_content&gt;)

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 2.2k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    FrenzyOrange
    wrote on last edited by
    #1

    I'm migrating project from MFC to Qt now, and it's using embedded web browser, which displays local (resource) html-page. Local page is displayed fine, no problems. But i have a problem to set html content to child tag. QWebView can't display external images set via javascript $("#").html() - only text and local (resource) images are displayed. In MFC version with IE webview the same script works fine.

    I've tried to use QWebElement::setInnerXml, but result is the same: only local content is displayed.

    Setting
    @QWebSettings::globalSettings()->setAttribute(
    QWebSettings::LocalContentCanAccessRemoteUrls, true);
    @

    doesn't help.

    Did anyone meet the same problem? Has anyone solution to resolve my problem?

    Thank you

    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