How can I inject JavaScript file into a WebEngineView page?
问题 I'm adding a script tag to a web page once it's fully loaded in a WebEngineView , but it's silently failing somehow. I inject the script by invoking webview.runJavaScript with this code: var s = document.createElement('script'); s.src = "qrc:/jquery-2.1.4.min.js"; document.body.appendChild(s); That's perfectly standard and to a certain extent it works as expected, i.e., if I view the html source of the page, the script tag has indeed been appended to the body. The problem is that the script