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

WebView doesn't show local files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.8.0 Beta, 5.8.0 RC, 5.8.0
    • WebView
    • iOS 10.2
    • e4016a67bbffefed71a407494e249e978d212b3d

    Description

      On iOS 10.2, loading local html file in WebView 1.1 fails since 5.8.
      Until 5.7.1 it worked fine.
      I already checked, the file exists on the device and the path is right.
      Loading Content from web (eg https://www.google.com) works fine.
      After setting the right url the log shows that the url is changing to ""

      WebView

      { id: webView anchors.fill: parent url: "file://" + fileManager.getPathHelp() + "/View.html" onUrlChanged: console.log("help url:", url) }

      Application Output:
      qml: help url: file:///var/mobile/Containers/Data/Application/88DB3A52-3CAF-4FA2-9FEC-BCFEDFAE79B3/Library/Application Support/myapp/help/View.html
      qml: help url:

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            cpoisel Christoph Poisel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes