Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-26883

QWebView::setHtml doesn't load external JS and CSS files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.1
    • None
    • GNU/Linux 32-bit (Debian, Ubuntu)

    Description

      For example, if I have a QString html containing source of HTML page and it contains

      <link rel="stylesheet" type="text/css" href="style.css">
      

      reference in <head>, and a QWebView webView, and I set HTML code using webView.setHtml(html), the style sheet won't be loaded and applied.

      The same happens if there's a JS reference included using

      <script type="text/javascript" src="script.js">
      

      (in my case, it's MathJax JS).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mandriver Dmitry Shachnev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes