Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

454 Topics 1.8k Posts
  • Virtual keyboard appears unexpectedly

    Unsolved
    1
    0 Votes
    1 Posts
    286 Views
    No one has replied
  • My webassembly app closes as it opens

    Unsolved
    2
    0 Votes
    2 Posts
    357 Views
    S
    @sheqo EDIT: I tried it on a new project and web assembly works fine, but there is something wrong with this project, can you think of anything?
  • Deploy Qt Webassembly app to production

    Unsolved
    2
    0 Votes
    2 Posts
    444 Views
    lorn.potterL
    All you need to do is copy files into the webserver filesystem. I just do: scp *.wasm *.js *.html $IP You will also need to set up the webserver correctly though.
  • SQL is still not supported?

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    D
    SQLite 3.40 is now available with official support for Wasm
  • Qt 6.4 - QWebSocket undefined symbol on macOS

    Unsolved
    1
    0 Votes
    1 Posts
    334 Views
    No one has replied
  • Passing emscripten::val in signal/slot

    Unsolved
    1
    0 Votes
    1 Posts
    299 Views
    No one has replied
  • 0 Votes
    1 Posts
    331 Views
    No one has replied
  • Unable to hit connection/GET/POST request from Qt WebAssembly client to QHttpServer.

    Unsolved
    1
    0 Votes
    1 Posts
    269 Views
    No one has replied
  • Build Qt Web Assembly with HTTP but without Threading

    Unsolved
    1
    0 Votes
    1 Posts
    245 Views
    No one has replied
  • Any Web-SDK is available In Qt?

    Unsolved
    1
    0 Votes
    1 Posts
    313 Views
    No one has replied
  • WebAssembly multi canvas "Failed to make context current"

    Unsolved webassembly multi-screen gles2
    2
    0 Votes
    2 Posts
    1k Views
    B
    It is indeed a bug, see: https://bugreports.qt.io/browse/QTBUG-106707
  • 0 Votes
    6 Posts
    2k Views
    M
    In Qt 6.4 (on macos) Debug build does not generate javascript file...
  • Qt for WebAssembly and exceptions

    Unsolved
    1
    0 Votes
    1 Posts
    393 Views
    No one has replied
  • Glitchy rendering with GLES3, QOpenGLWidget, Qt6.4

    Unsolved
    3
    0 Votes
    3 Posts
    513 Views
    S
    Sorry, should have been more clear about this point: I have the "same" rendering code successfully running in webassembly (https://sgsaenger.github.io/vipster/emscripten/), so it should be more or less correct. This standalone app obtains canvas and webgl2 context via the emscripten helper functions, so glGetString(GL_VERSION) reports OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium)) as expected. Note the weird mismatch in OpenGL ES 2.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium)) when Qt is doing its initialization first. My guess is that somewhere there's a conflict between my setup code (or expectations) and what Qt is doing before initGL() is reached. Is there maybe any working GLES3 QOpenGLWidget examples?
  • Unable to use keyboard on web application using QT and Web Assembly.. HELP!!!

    Moved Unsolved
    4
    0 Votes
    4 Posts
    545 Views
    RenioR
    @zeethree50 I found this bug https://bugreports.qt.io/browse/QTBUG-105582
  • QComboBox behaviour

    Solved webassembly
    5
    0 Votes
    5 Posts
    716 Views
    RenioR
    @lorn-potter I try asap
  • WebAssembly Error Parsing JSON at 1:1

    Unsolved
    1
    0 Votes
    1 Posts
    240 Views
    No one has replied
  • Qt WebAssembly compiler error

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    D
    I also know this is quite old, but the correct QT docs are hard to find when you approach it from the error first -> search later stance. TL;DR You need to add your emsdk path to Options >> Devices >> Webassembly tab, before trying to configure any kind of Kit for Webassembly. This here describes it with pictures to guide you along: https://doc-snapshots.qt.io/qtcreator-master/creator-setup-webassembly.html
  • Warning: This file is not part of any project

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    S
    @JoeCFD said in Warning: This file is not part of any project: INCLUDEPATH += $$PWD DEPENDPATH += $$PWD That didn't seem to work :/ I'll also note the issues that are coming up in QtCreator [image: 8a409062-1482-474c-8fd6-cdb7c57c52ae.png] My Emscripten version is 3.1.6, it just doesn't seem to recognize the version number [image: 68425b2d-2087-49d1-ad38-d47ceb1cf2d5.png] and I've tried with 3.0.0 and 1.39.7 with WebAssembly 5.15.2. This project is currently 6.3.2 but I can't get any WebAssembly to work
  • [Question] WebAssembly Dynamically URL Change

    Solved
    5
    0 Votes
    5 Posts
    992 Views
    K
    Qt WebAssembly uses emscripten, so technically you can call any Javascript from your C++ code using emscripten API. See https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#interacting-with-code-call-javascript-from-native. Maybe that will help you change the query in the URL? At least the opposite - reading URL query from C++ code is possible. That I have tested. #include <emscripten/val.h> ... emscripten::val location = emscripten::val::global("location"); auto search = location["search"].as<std::string>(); For cross-platform code wrap the emscripten stuff in #ifdef Q_OS_WASM.