title: View PDF in QML WebView
body: <p>I would like to view a PDF file in a WebView created in my QML code. I am importing QtWebView 1.1 and setting the url property to the path of the PDF file but I am getting this error:</p>
  
  <blockquote>
    <p>[13044:12820:0314/144814.854:ERROR:in_progress_cache_impl.cc(192)]
    Cache is not initialized, cannot RetrieveEntry.
    [13044:12820:0314/144814.854:ERROR:in_progress_cache_impl.cc(176)]
    Cache is not initialized, cannot AddOrReplaceEntry.
    [13044:12820:0314/144814.854:ERROR:in_progress_cache_impl.cc(192)]
    Cache is not initialized, cannot RetrieveEntry.</p>
  </blockquote>
  
  <p>When I use the same code to view an image it works. This question: <a href="https://stackoverflow.com/questions/24613347/display-pdf-file-with-qwebview">Display PDF file with QWebView</a> is close to what I want but QML does not seem to give me access to the settings method the way that C++ does (<a href="https://doc.qt.io/qt-5/qml-qtwebview-webview.html" rel="nofollow noreferrer">WebView docs</a>). Is there some other way to do this?</p>