Qt 6.11 is out! See what's new in the release
blog
hellogl2 not working
-
Hi,
I am not able to get the hellogl2 example working with Qt for WebAssembly. This is the example that is found in the
Qt/Examples/Qt-6.11.1/opengl/hellogl2
directory, and also in https://doc.qt.io/qt-6/qtopengl-hellogl2-example.html .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.
The following are the steps to reproduce it:
cd ~/Qt/Examples/Qt-6.11.1/opengl/hellogl2 ~/Qt/6.11.1/wasm_singlethread/bin/qmake6 hellogl2.pro make python3 -m http.server 8000Then in the browser:
http://localhost:8000/hellogl2.htmlRoman