<?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[hellogl2 not working]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am not able to get the <strong>hellogl2</strong> example working with Qt for WebAssembly.  This is the example that is found in the<br />
<code>Qt/Examples/Qt-6.11.1/opengl/hellogl2</code><br />
directory, and also in <a href="https://doc.qt.io/qt-6/qtopengl-hellogl2-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qtopengl-hellogl2-example.html</a> .</p>
<p dir="auto">It works when I compile it as a regular program, however, when I compile it for WebAssembly, the contents of QOpenGLWidget are not rendered.  This example is similar to a program that I am working on and having the same problems.</p>
<p dir="auto">The following are the steps to reproduce it:</p>
<pre><code>cd ~/Qt/Examples/Qt-6.11.1/opengl/hellogl2
~/Qt/6.11.1/wasm_singlethread/bin/qmake6 hellogl2.pro
make
python3 -m http.server 8000
</code></pre>
<p dir="auto">Then in the browser:<br />
<a href="http://localhost:8000/hellogl2.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://localhost:8000/hellogl2.html</a></p>
<p dir="auto">Roman</p>
]]></description><link>https://forum.qt.io/topic/164906/hellogl2-not-working</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 15:55:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164906.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Jul 2026 18:05:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to hellogl2 not working on Wed, 02 Sep 2026 14:56:18 GMT]]></title><description><![CDATA[<p dir="auto">Try using emrun instead of python http.server. It works fine for me. When i use python http.server it gets stuck at the loading page and there are errors in the browser console. Is that what you're seeing? Or does it finish loading but the widget is blank?</p>
]]></description><link>https://forum.qt.io/post/839939</link><guid isPermaLink="true">https://forum.qt.io/post/839939</guid><dc:creator><![CDATA[Matthew Daskilewicz]]></dc:creator><pubDate>Wed, 02 Sep 2026 14:56:18 GMT</pubDate></item></channel></rss>