<?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[QQuickWidget not showing in release build]]></title><description><![CDATA[<p dir="auto">I am having trouble some with my 'release' version. Everything is working fine except for my QQuickWidget, which does not show in the release version. For the debug version it works as expected.</p>
<p dir="auto">This is my build command for the debug version:</p>
<pre><code>qmake.exe "application.pro" -spec win32-g++ CONFIG+=debug" "CONFIG+=qml_debug" &amp;&amp; mingw32-make.exe qmake_all
</code></pre>
<p dir="auto">And for the release version I have a build command + windeploy command to copy .dll files:</p>
<pre><code>qmake.exe "application.pro" -spec win32-g++ "CONFIG+=qtquickcompiler" &amp;&amp; mingw32-make.exe qmake_all

windeployqt.exe --release --no-translations --no-patchqt --no-quick-import --no-system-d3d-compiler --no-compiler-runtime --no-webkit2 --no-angle --no-opengl-sw "release path"
</code></pre>
<p dir="auto">During initilisation of my main window class I create an instance of a class inheriting QQuickWidget as follows.</p>
<pre><code>mDesignStageView = new WDesignStageView(mUiImt-&gt;stageWidget);
mUiImt-&gt;stageLayout-&gt;addWidget(mDesignStageView);
mDesignStageView-&gt;hide();
</code></pre>
<p dir="auto">Constructor of WDesignStageWidget:</p>
<pre><code>WDesignStageView::WDesignStageView(QWidget *parent) : QQuickWidget(parent){
    this-&gt;setResizeMode(QQuickWidget::SizeRootObjectToView);
    this-&gt;setSource(QUrl("qrc:/ui_designstage.qml"));

    this-&gt;rootContext()-&gt;setContextProperty("widget", this);  
    this-&gt;rootContext()-&gt;setContextProperty("colourPrestudy", this);
    ... more colour properties
}
</code></pre>
<p dir="auto">The other functions of WDesignStageView don't do much except changing colours when some conditions are met.</p>
<p dir="auto">The widget show show together with two QTreeView when clicking on an item in another QTreeView. They do show correctly however.</p>
]]></description><link>https://forum.qt.io/topic/110552/qquickwidget-not-showing-in-release-build</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 12:19:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/110552.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Jan 2020 19:48:00 GMT</pubDate><ttl>60</ttl></channel></rss>