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

QtWebView loadHtml will show html source (not rendered page) on Android 4.3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.9.6, 5.11.2
    • WebView
    • None
    • Android 4.3
      Qt 5.9.x
    • Android

      When running QtWebView on android 4.3 (api level < 19, not chromium based), loadHtml call will show the html source, not the rendered page.

      It is the same issue as:

      https://stackoverflow.com/questions/30420949/webview-shows-source-html-with-loaddatawithbaseurl-not-rendered-view

      Change the mime type from "text/html;charset=UTF-8" to simple "text/html" fix the issue.

      It only happens to Android 4.3 (maybe also earlier versions too), more recent version of Android does not have this issue. (tested on 5.x and 6.x)

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

            stromme Christian
            steve.k.chiu Steve K. Chiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes