<?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[[Solved] Qt Quick qml widgets in Widget application are missing when deployed?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a desktop Qt Widget client application, where I have added a qml start/stop button, and added to the layout by doing the following:<br />
startStopWidget_ = new WidgetStartStop();<br />
startStopWidget_-&gt;setObjectName(QStringLiteral("startStopWidget"));<br />
startStopWidget_-&gt;setResizeMode(QQuickWidget::SizeRootObjectToView);<br />
startStopWidget_-&gt;setSource(QUrl(QStringLiteral("qrc:/res/qml/buttonstartstop.qml")));</p>
<p dir="auto">When running the application from anywhere on my development PC, the qml widget is properly displayed. But if I deploy the application to another machine, not having IDE environments installed, the widget is empty. I'm not copying the qml file with the exe file since I assume, that it's part of the resources compiled into the exe. At least on the development PC I don't need to copy the qml file with the exe.</p>
<p dir="auto">I'm using mainly the Visual Studio plugin to develop the application.</p>
<p dir="auto">Any input is appreciated.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Carsten</p>
]]></description><link>https://forum.qt.io/topic/58676/solved-qt-quick-qml-widgets-in-widget-application-are-missing-when-deployed</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 20:54:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/58676.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Sep 2015 10:25:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] Qt Quick qml widgets in Widget application are missing when deployed? on Wed, 09 Sep 2015 07:50:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi again,</p>
<p dir="auto">The problem has been resolved. What I needed to do was to add a qml-directory in the executable folder of the program, consisting of these 3 folders copied from the Qt install directory:</p>
<ul>
<li>QtGraphicalEffects</li>
<li>QtQuick</li>
<li>QtQuick.2</li>
</ul>
<p dir="auto">Apart from that, I apparently needed a qt.conf file next to the executable with the following i the file:<br />
[Paths]<br />
Prefix=.</p>
<p dir="auto">I'm not fully aware, why I need the qt.conf file, since I assumed that the default directory for the qml dll's already was in the same directory as the executable.</p>
<p dir="auto">But this works, I'll edit the headline to Solved right away.</p>
<p dir="auto">And yes, there is no need for the qml files in the deployed directory.</p>
<p dir="auto">Thanks for the help!</p>
]]></description><link>https://forum.qt.io/post/289679</link><guid isPermaLink="true">https://forum.qt.io/post/289679</guid><dc:creator><![CDATA[panch]]></dc:creator><pubDate>Wed, 09 Sep 2015 07:50:28 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Qt Quick qml widgets in Widget application are missing when deployed? on Tue, 08 Sep 2015 14:14:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/panch">@<bdi>panch</bdi></a> said:</p>
<blockquote>
<p dir="auto">But please enlighten me; if I have added the qml to the resource file, and use the qml by calling qrc:// shouldn't it then be embedded in the exe file?</p>
</blockquote>
<p dir="auto">Yes, that's correct.</p>
<blockquote>
<p dir="auto">That's what I'd assume, because that was the whole point in adding it to the resources. I wouldn't like to deploy qml files with my application...</p>
</blockquote>
<p dir="auto">Perhaps you're missing other files required for deployment (I don't mean .qml files)</p>
]]></description><link>https://forum.qt.io/post/289581</link><guid isPermaLink="true">https://forum.qt.io/post/289581</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 08 Sep 2015 14:14:17 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Qt Quick qml widgets in Widget application are missing when deployed? on Tue, 08 Sep 2015 14:01:49 GMT]]></title><description><![CDATA[<p dir="auto">I will have a look at the wiki page you linked to - haven't seen that one before. So I guess that something may be missed there.<br />
But please enlighten me; if I have added the qml to the resource file, and use the qml by calling qrc:// shouldn't it then be embedded in the exe file?</p>
<p dir="auto">That's what I'd assume, because that was the whole point in adding it to the resources. I wouldn't like to deploy qml files with my application...</p>
]]></description><link>https://forum.qt.io/post/289579</link><guid isPermaLink="true">https://forum.qt.io/post/289579</guid><dc:creator><![CDATA[panch]]></dc:creator><pubDate>Tue, 08 Sep 2015 14:01:49 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] Qt Quick qml widgets in Widget application are missing when deployed? on Tue, 08 Sep 2015 11:11:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/panch">@<bdi>panch</bdi></a>,</p>
<p dir="auto">How did you deploy your compiled files? Are all the dependencies in place?</p>
<p dir="auto">See <a href="http://wiki.qt.io/Deploy_an_Application_on_Windows" target="_blank" rel="noopener noreferrer nofollow ugc">http://wiki.qt.io/Deploy_an_Application_on_Windows</a></p>
]]></description><link>https://forum.qt.io/post/289563</link><guid isPermaLink="true">https://forum.qt.io/post/289563</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 08 Sep 2015 11:11:51 GMT</pubDate></item></channel></rss>