Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. hellogl2 not working
Qt 6.11 is out! See what's new in the release blog

hellogl2 not working

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
1 Posts 1 Posters 69 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RomanS
    wrote last edited by
    #1

    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 8000
    

    Then in the browser:
    http://localhost:8000/hellogl2.html

    Roman

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved