Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

459 Topics 1.8k Posts
  • How can i configure Qt Webassembly to use emscripten's file system api?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    lorn.potterL
    Maybe you need to add #include <emscripten.h> Yes, that script is for QSettings, but you could put /src in there as well.
  • QApplication::processEvents() doesn't works

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    sitesvS
    @sitesv said in QApplication::processEvents() doesn't works: Trying to do next: C:\Qt\6.3.0>\Src\configure.bat -qt-host-path C:\Qt\6.3.0\wasm_32 -no-warnings-are-errors -platform wasm-emscripten -device-option QT_EMSCRIPTEN_ASYNCIFY=1 -prefix C:\Qt\6.3.0\wasm_32_asyncify But there is an error message: CMake Error at qtbase/cmake/QtToolHelpers,cmake:156 (message): The tool "Qt6::moc" was not found in the Qt6CoreTools package. This Q was solved. There is an error in qt host parameter... But problem with QEventLoop still exist...
  • QtWebAssembly - Push button does not work

    Solved
    2
    0 Votes
    2 Posts
    433 Views
    B
    Hello, Thank you, I found out the issue. The problem was with emscripten version. The qt6 requires 2.0.14, but i have installed latest version 3.x.x now i have installed the correct version and it works fine. Thank you. Bhimesh G K
  • How can i achieve data persistency between sessions?

    Unsolved
    1
    0 Votes
    1 Posts
    260 Views
    No one has replied
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Problems with QWidget::leaveEvent(QEvent *event)

    Unsolved
    3
    0 Votes
    3 Posts
    497 Views
    G
    I am using 5.15.2
  • Webassembly - Typescript support

    Unsolved
    2
    0 Votes
    2 Posts
    500 Views
    JKSHJ
    @just_a_developer said in Webassembly - Typescript support: Would it be possible to have Typescript output with *.ts extension? May I ask why you want this? A *.js file can be integrated into TypeScript code A *.ts files cannot be used directly with HTML websites; they need to be compiled into *.js files first
  • WebEngine Vs WebAssembly

    Unsolved
    2
    0 Votes
    2 Posts
    655 Views
    sierdzioS
    If you need to access/ show your app via a web browser then WebEngine won't help you at all. You can use WebAssembly or any different web framework (Cutelyst, Django, RoR etc.)
  • Configuring Qt6.2 fails on QtShaderTools

    Unsolved
    6
    0 Votes
    6 Posts
    6k Views
    V
    I had the same problem and the problem was the Qt host build haven't qtshadertools module. I recompiled qtshadertools module in Qt host build and solved it
  • Qt Webassembly via conan package manager - "Could NOT find Qt6Quick"

    Locked Unsolved
    2
    0 Votes
    2 Posts
    459 Views
    jsulmJ
    @just_a_developer Please do not double post! https://forum.qt.io/topic/134001/qt-webassembly-via-conan-package-manager-could-not-find-qt6quick
  • emsdk installing problem

    Solved
    2
    0 Votes
    2 Posts
    441 Views
    sitesvS
    Problem solved. I don't know why, but qt needs to be configured to work with emsdk. Tools->Options->Devices->WebAssembly ...and add root directory.
  • Any possibility for text input on iOS?

    Unsolved
    4
    0 Votes
    4 Posts
    788 Views
    lorn.potterL
    Short explanation is that the webassembly qpa plugin has no support for the input context. :)
  • "The command line is too long" when building the app

    Unsolved webassembly line too long emsdk
    3
    2 Votes
    3 Posts
    979 Views
    lorn.potterL
    https://bugreports.qt.io/browse/QTBUG-84392 With Qt 6.2, you can use qt-cmake to build examples, which does not have this issue.
  • Right Mouse Button is not detected

    Unsolved qml mousearea mouseevents wasm
    4
    1 Votes
    4 Posts
    1k Views
    lorn.potterL
    This is already fixed in 6.2.3, and 6.3
  • include windows.h

    Solved
    3
    0 Votes
    3 Posts
    745 Views
    lorn.potterL
    windows.h is not part of the emscripten sdk, as it does not have the Javascript port of the windows API. You could port those parts to Qt or SDL.
  • Qt 6.2.2 Webassembly - sign conversion errors

    Unsolved
    2
    0 Votes
    2 Posts
    478 Views
    kshegunovK
    Without having the faintest of clues about the actual problem, at a glance it looks to me like some missing/incomplete/bogus library support issue. I suggest you bring this to the mailing list, we don't get much traffic for wasm here.
  • Question over Qt / Web Assembly / Csharp (WebAssembly) interop

    Unsolved
    1
    0 Votes
    1 Posts
    372 Views
    No one has replied
  • WebAssembly & JavaScript Comparison Fail

    Unsolved webassembly javascript performance comparison
    1
    0 Votes
    1 Posts
    433 Views
    No one has replied
  • Example of OpenGL texture in Qt WebAssembly?

    Unsolved
    3
    0 Votes
    3 Posts
    825 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
    430 Views
    G
    Thanks Lorn, I will give that a try. Gary