<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WebEngineScript sourceUrl: Can&#x27;t open user script]]></title><description><![CDATA[<p dir="auto">I have tried to insert the qwebchannel.js script as WebEngineScript within a WebEngineView:</p>
<pre><code>WebEngineView {
    id: webbrowser02
    WebEngineScript {
        injectionPoint: WebEngineScript.DocumentCreation
        id: qwebchannel
        sourceUrl: "qrc:///qwebchannel.js"
        worldId: WebEngineScript.MainWorld
    }
    userScripts: [qwebchannel]
}
</code></pre>
<p dir="auto">The script file qwebchannel.js is  defined within the resources:</p>
<pre><code>&lt;RCC&gt;
    &lt;qresource&gt;
        &lt;file&gt;main.qml&lt;/file&gt;
        &lt;file&gt;qwebchannel.js&lt;/file&gt;
    &lt;/qresource&gt;
&lt;/RCC&gt;
</code></pre>
<p dir="auto">Then, as I try to start, I've got the message:</p>
<pre><code>QFSFileEngine::open: No file name specified
Can't open user script  QUrl("qrc:///qwebchannel.js")
</code></pre>
<p dir="auto">What' going wrong? I'm using Qt  5.5 with QtWebView 1.1</p>
]]></description><link>https://forum.qt.io/topic/86697/webenginescript-sourceurl-can-t-open-user-script</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 03:45:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/86697.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Jan 2018 13:18:44 GMT</pubDate><ttl>60</ttl></channel></rss>