<?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[Qt [c++] - No Qt3D rendering on older laptop]]></title><description><![CDATA[<p dir="auto">Hello Folks!</p>
<p dir="auto">I developed a game which uses the Qt3D Engine to display a custom 3D scene.<br />
I was now copying the programm on an older Machine (Win11, i5, 4GB Ram) and the program starts properly.<br />
Unfortunately, the 3D Scene is not rendering (the QT3D widget remains empty).<br />
I also installed some OpenGL drivers from Microsoft [<a href="https://apps.microsoft.com/detail/9nqpsl29bfff?hl=de-DE&amp;gl=DE" target="_blank" rel="noopener noreferrer nofollow ugc">https://apps.microsoft.com/detail/9nqpsl29bfff?hl=de-DE&amp;gl=DE</a>]</p>
<p dir="auto">What am I missing to set up for Qt3D to render a scene?</p>
<p dir="auto">best regards, kevin_d</p>
]]></description><link>https://forum.qt.io/topic/164196/qt-c-no-qt3d-rendering-on-older-laptop</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 02:41:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164196.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Feb 2026 13:48:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Thu, 26 Feb 2026 16:44:44 GMT]]></title><description><![CDATA[<p dir="auto">Okay, thank you for your efforts.<br />
I will close this issue now as "Not possible to support legacy hardware with a Qt6.8 Setup".<br />
Minimum requirements: Direct3D11 or GLSL<br />
best regards, kevin_d</p>
]]></description><link>https://forum.qt.io/post/836611</link><guid isPermaLink="true">https://forum.qt.io/post/836611</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Thu, 26 Feb 2026 16:44:44 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Tue, 17 Feb 2026 16:41:28 GMT]]></title><description><![CDATA[<p dir="auto">It looks like you are running into a classic <strong>RHI (Rendering Hardware Interface)</strong> mismatch. Even though the performance feels snappy, those warnings are red flags that your current environment is missing the specific shader translations needed for the OpenGL backend.</p>
<p dir="auto">Here’s the breakdown of what is actually happening under the hood:</p>
<h3>1. The Shader Version Gap</h3>
<p dir="auto">The error <code>versions tried: QList(130, 120)</code> tells us that your application is looking for older, "baked" GLSL shader code (OpenGL 3.0/2.1 era). However, the only shader found in your binary is <code>Version(300)</code>, which corresponds to <strong>OpenGL ES 3.0</strong>.</p>
<ul>
<li><strong>What you're missing:</strong> Your application was likely compiled/packaged with shaders targeting modern mobile or DirectX/Vulkan backends, but the runtime is falling back to a legacy OpenGL path that doesn't have the corresponding "blobs" to talk to the GPU.</li>
</ul>
<h3>2. Why it "Works" on the Newer Machine</h3>
<p dir="auto">The newer machine likely has a more robust driver set or a different default RHI priority.</p>
<ul>
<li><strong>DirectX 11 vs. OpenGL:</strong> On Windows, Qt and similar frameworks perform significantly better on DirectX because they can use the <strong>ANGLE</strong> layer, which translates OpenGL calls to DirectX.</li>
<li><strong>The "Speed" Illusion:</strong> If the scene is still fast, your system might be successfully falling back to a software rasterizer or a partial hardware acceleration path, but you'll eventually hit a "Black Screen" or a crash when the app tries to call a specific graphics pipeline that failed to build.</li>
</ul>
<hr />
<h3>Comparison of Backends</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Feature</th>
<th>OpenGL (Legacy)</th>
<th>DirectX 11</th>
<th>Vulkan / Metal</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Stability</strong></td>
<td>Lower on Windows</td>
<td>High (Windows native)</td>
<td>High (Modern)</td>
</tr>
<tr>
<td><strong>Shader Format</strong></td>
<td>GLSL</td>
<td>HLSL</td>
<td>SPIR-V</td>
</tr>
<tr>
<td><strong>Compatibility</strong></td>
<td>Hit-or-miss drivers</td>
<td>Best for Windows</td>
<td>Best for Cross-platform</td>
</tr>
</tbody>
</table>
<hr />
<h3>How to Fix This</h3>
<p dir="auto">You likely need to force the application to use a backend that matches its baked shaders. Try one of the following:</p>
<ul>
<li>
<p dir="auto"><strong>Force the RHI:</strong> Set an environment variable before launching the app to see if it clears the warning:</p>
</li>
<li>
<p dir="auto"><code>QT_RHI_BACKEND=d3d11</code> (For Windows)</p>
</li>
<li>
<p dir="auto"><code>QT_RHI_BACKEND=vulkan</code> (If supported)</p>
</li>
<li>
<p dir="auto"><strong>Update Drivers:</strong> Even if the machine is "older," ensure the GPU drivers support OpenGL 3.3+.</p>
</li>
<li>
<p dir="auto"><strong>Check Shader Baking:</strong> If you are the developer, ensure your <code>qsb</code> (Qt Shader Baker) settings include the desktop GLSL versions (<code>--glsl "130,120,100"</code>) and not just the ES versions.</p>
</li>
</ul>
<blockquote>
<p dir="auto"><strong>Note:</strong> The "Failed to build graphics pipeline" error is the most critical. It means certain effects, materials, or lighting calculations simply won't render, even if the rest of the UI seems to be moving.</p>
</blockquote>
<p dir="auto">Would you like me to show you how to check which OpenGL versions your current GPU drivers actually support?</p>
<p dir="auto">P.S. Sorry, but my answer above was generated with Gemini. I think it can be usefull.</p>
]]></description><link>https://forum.qt.io/post/836356</link><guid isPermaLink="true">https://forum.qt.io/post/836356</guid><dc:creator><![CDATA[8Observer8]]></dc:creator><pubDate>Tue, 17 Feb 2026 16:41:28 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Tue, 17 Feb 2026 11:59:56 GMT]]></title><description><![CDATA[<p dir="auto">I did that. My output is:</p>
<p dir="auto">WARNING 	 Initializing RHI with OpenGL backend<br />
WARNING 	 No GLSL shader code found (versions tried:  QList(130, 120) ) in baked shader QShader(stage=0 shaders=QList(ShaderKey(1 Version(300 QFlags()) 0)) desc.isValid=true)<br />
WARNING 	 Failed to build graphics pipeline: Creation Failed</p>
<p dir="auto">No problem with this setting on the newer machine so far ...<br />
Speed of the scene is comparable to DirextX11+</p>
<p dir="auto">What am I missing?</p>
]]></description><link>https://forum.qt.io/post/836351</link><guid isPermaLink="true">https://forum.qt.io/post/836351</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Tue, 17 Feb 2026 11:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Mon, 16 Feb 2026 19:35:27 GMT]]></title><description><![CDATA[<p dir="auto">In that case you might be able to leverage <code>Q3D_RENDERER</code>. See the <a href="https://doc.qt.io/qt-6/qt3drender-porting-to-rhi.html" target="_blank" rel="noopener noreferrer nofollow ugc">module documentation</a> for more information.</p>
]]></description><link>https://forum.qt.io/post/836333</link><guid isPermaLink="true">https://forum.qt.io/post/836333</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 16 Feb 2026 19:35:27 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Mon, 16 Feb 2026 13:44:26 GMT]]></title><description><![CDATA[<p dir="auto">I am not using QQuickWindow, but instead Qt3DExtras::Qt3DWindow</p>
]]></description><link>https://forum.qt.io/post/836328</link><guid isPermaLink="true">https://forum.qt.io/post/836328</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Mon, 16 Feb 2026 13:44:26 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Fri, 13 Feb 2026 19:27:52 GMT]]></title><description><![CDATA[<p dir="auto">Does it happen if you set <code>QSG_RHI_BACKEND</code> before starting your application ?</p>
]]></description><link>https://forum.qt.io/post/836239</link><guid isPermaLink="true">https://forum.qt.io/post/836239</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 13 Feb 2026 19:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Fri, 13 Feb 2026 11:33:07 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, i would fancy to have a fallback on OpenGL, when having no D3D11 ...<br />
But it says:  QOpenGLContext::makeCurrent() called with non-opengl surface ...<br />
What does it mean? Can it be fixed?</p>
<p dir="auto">best regards, kevin_d</p>
]]></description><link>https://forum.qt.io/post/836218</link><guid isPermaLink="true">https://forum.qt.io/post/836218</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Fri, 13 Feb 2026 11:33:07 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Tue, 10 Feb 2026 19:38:49 GMT]]></title><description><![CDATA[<p dir="auto">Based on a quick look at <a href="https://doc.qt.io/archives/qt-6.0/qtquick-visualcanvas-scenegraph-renderer.html#rendering-via-the-qt-rendering-hardware-interface" target="_blank" rel="noopener noreferrer nofollow ugc">older versions of the documentation</a>, I would say no.</p>
]]></description><link>https://forum.qt.io/post/836148</link><guid isPermaLink="true">https://forum.qt.io/post/836148</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 10 Feb 2026 19:38:49 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Tue, 10 Feb 2026 18:08:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi!<br />
So... no chance for Direct3D10 ?</p>
<p dir="auto">best regards, kevin_d</p>
]]></description><link>https://forum.qt.io/post/836147</link><guid isPermaLink="true">https://forum.qt.io/post/836147</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Tue, 10 Feb 2026 18:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Mon, 09 Feb 2026 19:42:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I think you can use the <a href="https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph-renderer.html#rendering-via-the-qt-rendering-hardware-interface" target="_blank" rel="noopener noreferrer nofollow ugc">QSG_RHI_BACKEND</a> environment variable for that.</p>
]]></description><link>https://forum.qt.io/post/836134</link><guid isPermaLink="true">https://forum.qt.io/post/836134</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 09 Feb 2026 19:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Mon, 09 Feb 2026 17:57:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">Thanks for your reply.<br />
Appearantly, the Graphic Chip does not support DirectX11 ...<br />
Is there a way of a fallback to either OpenGL or DirectX10 ?</p>
<p dir="auto">best regards, kevin_d</p>
]]></description><link>https://forum.qt.io/post/836132</link><guid isPermaLink="true">https://forum.qt.io/post/836132</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Mon, 09 Feb 2026 17:57:59 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Sun, 08 Feb 2026 18:27:56 GMT]]></title><description><![CDATA[<p dir="auto">I was intrigued enough by the posted RHI warning text lines that I thought I would poke around in Qt source code for clues.</p>
<p dir="auto">Disclaimer: I do not currently work on any program on Windows (nor DirectX specifically), so I have not attempted to reproduce this nor to run anything on Windows at all at the moment.</p>
<p dir="auto">Based on reading source code, (and depending which Qt version—here I have assumed 6.10), it seems like in order for this to happen:</p>
<pre><code>{Warning:} Initializing RHI with DirectX backend
{Warning:} RHI: Unable to use requested RHI Api, trying to fall back on OpenGL
</code></pre>
<p dir="auto">The Qt method <code>bool QRhiD3D11::create(QRhi::Flags flags)</code> has to return <code>false</code>.</p>
<p dir="auto">You can see the body of the method here: <a href="https://github.com/qt/qtbase/blob/v6.10.2/src/gui/rhi/qrhid3d11.cpp#L197-L419" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt/qtbase/blob/v6.10.2/src/gui/rhi/qrhid3d11.cpp#L197-L419</a></p>
<p dir="auto">This suggests at least two potential paths toward a deeper diagnosis:</p>
<ol>
<li>Make sure Visual Studio has access to Qt framework debug symbols and source code, and step through <code>QRhiD3D11::create</code> in a debugger.</li>
<li>Try to write a (non Qt) small DirectX "hello world" that uses functions like <code>createDXGIFactory2</code> and <code>dxgiFactory-&gt;EnumAdapters1</code> (which are the functions that Qt is trying to use under the hood).</li>
</ol>
<p dir="auto">In option (2), the idea is that if you directly write some DirectX code (in a separate <code>main</code> that does not use Qt at all), then you can perhaps more quickly discover what part of DirectX is failing to cooperate.</p>
<p dir="auto">I offer this in the spirit of brainstorming. Again, I am not actively developing any Windows/DirectX codebase at the moment, so my advice is certainly not "expert" in that regard. However, I have done such work in years past, and I have used the approaches (1) and (2) successfully in the past to debug similar scenarios where it was not clear to me whether Qt was misbehaving or whether something nested "underneath" Qt was misbehaving.</p>
]]></description><link>https://forum.qt.io/post/836115</link><guid isPermaLink="true">https://forum.qt.io/post/836115</guid><dc:creator><![CDATA[KH-219Design]]></dc:creator><pubDate>Sun, 08 Feb 2026 18:27:56 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Sun, 08 Feb 2026 17:03:19 GMT]]></title><description><![CDATA[<p dir="auto">hi!<br />
On a working machine, i get a "WARNING - Initializing RHI with DirectX backend" ...<br />
I also installed additional DirectX-components according to <a href="https://www.microsoft.com/en-gb/download/details.aspx?id=35" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.microsoft.com/en-gb/download/details.aspx?id=35</a>, but it fails nevertheless.<br />
~kevin_d</p>
]]></description><link>https://forum.qt.io/post/836113</link><guid isPermaLink="true">https://forum.qt.io/post/836113</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Sun, 08 Feb 2026 17:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Sun, 08 Feb 2026 15:29:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi!<br />
Thanks for the tip. Unfortunately, that did not do the trick.<br />
According to <a href="https://forum.qt.io/topic/50936/qt-5-4-sending-qdebug-to-a-file-40-aka-logging-41-solved/5">https://forum.qt.io/topic/50936/qt-5-4-sending-qdebug-to-a-file-40-aka-logging-41-solved/5</a>, I am tracing the warnings, which say:</p>
<p dir="auto">{Warning:} 	 D3D11 smoke test: Failed to create vertex shader<br />
{Warning:} 	 Initializing RHI with DirectX backend<br />
{Warning:} 	 RHI: Unable to use requested RHI Api, trying to fall back on OpenGL<br />
{Warning:} 	 Initializing RHI with OpenGL backend<br />
{Warning:} 	 QOpenGLContext::makeCurrent() called with non-opengl surface 0x190509c29d0<br />
{Warning:} 	 QRhiGles2: Failed to make context current. Expect bad things to happen.</p>
<p dir="auto">My DirectX Version is locally at 12</p>
<p dir="auto">best regards, kevin_d</p>
]]></description><link>https://forum.qt.io/post/836112</link><guid isPermaLink="true">https://forum.qt.io/post/836112</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Sun, 08 Feb 2026 15:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Sat, 07 Feb 2026 10:43:48 GMT]]></title><description><![CDATA[<p dir="auto">Try this:</p>
<pre><code>extern "C"
{
    __declspec(dllexport) unsigned long NvOptimusEnablement = 1;
    __declspec(dllexport) unsigned long AmdPowerXpressRequestHighPerformance = 1;
}
</code></pre>
]]></description><link>https://forum.qt.io/post/836086</link><guid isPermaLink="true">https://forum.qt.io/post/836086</guid><dc:creator><![CDATA[8Observer8]]></dc:creator><pubDate>Sat, 07 Feb 2026 10:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to Qt [c++] - No Qt3D rendering on older laptop on Tue, 03 Feb 2026 17:55:35 GMT]]></title><description><![CDATA[<p dir="auto">btw, the System has Intel HD Graphics<br />
Drivers: igdumd64.dll and igd10umd64.dll</p>
]]></description><link>https://forum.qt.io/post/835989</link><guid isPermaLink="true">https://forum.qt.io/post/835989</guid><dc:creator><![CDATA[kevin_d]]></dc:creator><pubDate>Tue, 03 Feb 2026 17:55:35 GMT</pubDate></item></channel></rss>