Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

459 Topics 1.8k Posts
  • Virtual display with scrollbars

    Unsolved
    1
    1 Votes
    1 Posts
    318 Views
    No one has replied
  • Cannot run target compiler em++

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    jsulmJ
    @SimonR Did you check the Compiler tab to see whether there are any warnings/errors?
  • Change default logo when compiling

    Unsolved
    4
    0 Votes
    4 Posts
    882 Views
    sierdzioS
    No, that's the proper way to do it. The Qt logo and all the HTML, JS files generated in a project are just some example/ boilerplate code. You are free to replace it.
  • Get URL / local IP in Qt WASM

    Unsolved ipv4 wasm url
    3
    1 Votes
    3 Posts
    2k Views
    K
    You can use emscripten API to read the JavaScript window.location object. #include <emscripten/val.h> ... emscripten::val location = emscripten::val::global("location"); auto host = location["hostname"].as<std::string>(); auto port = location["port"].as<std::string>();
  • QT WebAssembly : get EGLContext from QApplication

    Unsolved
    1
    0 Votes
    1 Posts
    515 Views
    No one has replied
  • Calling C++ function from JavaScript through Qt Webassembly

    Unsolved
    3
    0 Votes
    3 Posts
    915 Views
    I
    @lorn-potter Thanks for the information. Yet <emscripten.h> cannot be found!
  • 0 Votes
    2 Posts
    582 Views
    F
    @Paul09A Hello, I have the same issue, Did you manage to solve this? Any workaround? Thanks
  • webassembly build fails

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    F
    @amphi Hello, I know it is quite old, but I have the same issue. Did you solve it eventually? Thank you
  • Qt Webassembly only for commercial?

    Solved
    11
    0 Votes
    11 Posts
    4k Views
    J
    @lorn-potter When using the installer qt-unified-linux-x64-4.1.0-online.run, and picking to install the WebAssembly component for Qt 5.15.2 I do not see any mention of it falling under GPL instead of LGPL. I make sure to install only LGPL components. Is this an oversight in the installer ? For all other modules (Qt Charts etc...) there is an explicit warning that the module is under GPL and not LGPL.
  • Link OpenSSL to webassembly works in 5.13.2 but not in 5.15.2 ?

    Unsolved openssl webassembly 5.15 5.13.2
    4
    0 Votes
    4 Posts
    2k Views
    M
    Building OpenSSL with the no-threads option solve the problem in my case. I don't really search deeper what is the consequences of that build option but maybe it can help someone ;)
  • Can't open text file resource

    Unsolved
    2
    0 Votes
    2 Posts
    517 Views
    A
    If the resource is in a library make sure to invoke Q_INIT_RESOURCE for your resource file (see documentation for details).
  • webassembly XmlListModel not working

    Unsolved
    1
    0 Votes
    1 Posts
    334 Views
    No one has replied
  • Compiling WebAssembly on MacOS in Qt Creator

    Unsolved
    1
    0 Votes
    1 Posts
    439 Views
    No one has replied
  • Loading multiple files in Qt for WebAssembly

    Unsolved
    3
    0 Votes
    3 Posts
    627 Views
    A
    Surely! I upload these files via REST API after receiving them in the sandbox.
  • WebAssembly.Memory cannot be cloned in this context

    Unsolved
    15
    1 Votes
    15 Posts
    4k Views
    lorn.potterL
    @nagyimre You don't know what I've read, so don't assume you do. I know all about the bug you posted. I was probably the first Qt developer to experience it. The Qt WebAssembly wiki even mentions this bug, which we put there so developers would see it. https://wiki.qt.io/Qt_for_WebAssembly I just assumed you were testing with emrun.
  • Wasm not updating without an event (mouse, keyboard)

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    T
    My version is 5.15.2
  • Including pybind11 causes Emscripten to fail build

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    lorn.potterL
    I have never tried building python with emscripten. You might look at this: https://chromium.googlesource.com/external/github.com/kripken/emscripten/+/refs/tags/1.36.0/tests/python/readme.md hope this helps!
  • compile slate sample project problem.

    Unsolved
    2
    0 Votes
    2 Posts
    476 Views
    A
    it seems that slate just can be compiled on Linux.
  • Is Qt for webassembly die?

    Locked Unsolved
    24
    0 Votes
    24 Posts
    11k Views
    aha_1980A
    As the discussion is getting rude here, let's close this topic for good.
  • WebAssembly for Qt Creator

    Unsolved webassembly emscripten qt creator qt 5.15 linux
    9
    0 Votes
    9 Posts
    3k Views
    T
    @lorn-potter thanks for your command. I love working with QT. If WASM would be working, a complete new world would open for us. The main thing what annoys me is that I can not find a good manual/guide to get wasm running on linux. I hope somebody can point me in the good direction. I'm probably just missing the needed information/knowledge, but I really want to learn!