Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

442 Topics 1.8k Posts
  • 0 Votes
    1 Posts
    296 Views
    No one has replied
  • Example of OpenGL texture in Qt WebAssembly?

    Unsolved
    3
    0 Votes
    3 Posts
    591 Views
    SeishinS

    @lorn-potter Yes I want to do something like put a texture on the cube surface in WebAssembly. Could I ask what Qt components should I use?

    Currently I tried QQuickFramebufferObject and QQuickItem (following the "Scene Graph - OpenGL Under QML" example), but haven't get a successful texture rendering in Chrome browser on Ubuntu 20.04 (Qt version 5.15.2). I also tried without WebAssembly using QOpenGLWidget, in this way the texture works normal.

  • Unit testing framework

    Unsolved
    3
    0 Votes
    3 Posts
    261 Views
    G

    Thanks Lorn,

    I will give that a try.

    Gary

  • QNetworkReply fault

    Unsolved
    2
    0 Votes
    2 Posts
    311 Views
    lorn.potterL

    Need more information, such as Qt version, any messages you may see in the browser console.

  • 0 Votes
    6 Posts
    915 Views
    B

    Try changing add_executable to qt_add_executable

  • Configuration issue with Webassembly

    Unsolved
    2
    0 Votes
    2 Posts
    347 Views
    G

    @GirishSharma Any update Please?

  • What do I need to do to get quick3d + wasm working?

    Solved
    10
    1 Votes
    10 Posts
    2k Views
    lorn.potterL

    Cool! If you see any issues, be sure to report them to https://bugreports.qt.io/

  • 0 Votes
    3 Posts
    379 Views
    idlefrogI

    @Seishin Am stuck with the old Qt Creator 5... but thanks for the help :)
    (Never got around that problem in the end, and gave up!)

  • Hello World app with QML & WebAssembly not working

    Unsolved
    2
    0 Votes
    2 Posts
    482 Views
    E

    @ericg_97477

    I ended up trying an alternate way to use emrun...

    $ emrun --no_browser --port 8080 ./default.html Web server root directory: /Users/ericg/depot_qt/default/build Now listening at http://0.0.0.0:8080/

    I then went to http://0.0.0.0:8080/ in the browser. I was shown the expected page:

    Directory listing for /

    with all of the files in my build folder.

    When I clicked on default.html, I saw the QT icon and it a message that it was downloading the program. Eventually, I saw the the hello world message appear.

    I assume I would eventually be able to take control over the loading screen.

    So, that worked.

    Why didn't emrun — browser=firefox *.html?

  • Qt5Concurrent module missing

    Unsolved
    6
    0 Votes
    6 Posts
    773 Views
    sierdzioS

    I don't know, sorry. I only tried WASM a few times, years ago.

  • 0 Votes
    3 Posts
    691 Views
    J

    Kinda...

    I documented my findings on https://github.com/jpgehrig/nextqt.

  • How best to deploy a WebAssembly app

    Unsolved
    3
    0 Votes
    3 Posts
    560 Views
    idlefrogI

    @SGaist said in How best to deploy a WebAssembly app:

    nginx

    Thank you!...Am a complete beginner. Just the help I needed! I'll try out nginx or something akin. :)

  • Qt WebAssembly 6.2 - compiling an app using qmake

    Unsolved
    1
    1 Votes
    1 Posts
    337 Views
    No one has replied
  • Work with Qt and WebAssembly

    Unsolved
    1
    1 Votes
    1 Posts
    217 Views
    No one has replied
  • Qt WebAssembly SQL alternatives

    Solved
    2
    0 Votes
    2 Posts
    487 Views
    mrjjM

    Hi
    Yes.
    Due to the sandbox nature,
    I have not seen any WebAssem that could save the DB as local file , only in memory
    which clearly won't fit your use case.

    However, it does seem possible to save to a array and and load from it.
    If your db is not big, it might be useful

    https://sql.js.org/#/

    I wonder if it would be possible to save and load the DB with javascript and then access it from
    c++ as in-mem db. However, I never tried it.

  • QML in Qt 5.15.2 Webassembly

    Unsolved
    5
    0 Votes
    5 Posts
    531 Views
    N

    Tested:

    EMSDK 1.38.9: OpenSSL cannot be compiled, since the packed gcc is older than requested
    EMSDK 1.39.16: Could compile but become frozen.
    EMSDK 2.0.6: Compiled, but every time I add QQuickView *view = new QQuickView(), the console log says:

    -- constructing QQuickView
    qtloader.js:382 Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-
    on-the-main-browser-thread

    and the execution hangs.

    It is possible that I oversee something, but every other modules are fine: multithreading is running, QGraphicsScene is there and works fine. I have only issue with this QML part.

  • 0 Votes
    5 Posts
    490 Views
    raven-worxR

    @JKSH
    true, my bad.
    than thats not an option.

  • Emscripten version for QT 5.15.2

    Unsolved
    4
    0 Votes
    4 Posts
    907 Views
    N

    Hi,

    I am currently using EMSDK 2.0.6 with Qt 5.15.2, but IIRC it was possible to compile Qt with ESMDK 2.0.14 as well.
    The 2.x version of EMSDK greatly reduces the compilation time and feels to be more mature.

  • creating .wasm ot of qtwebsocket project

    Moved Unsolved
    1
    0 Votes
    1 Posts
    254 Views
    No one has replied
  • 0 Votes
    1 Posts
    213 Views
    No one has replied