Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. webassembly

    Log in to post
    • All categories
    • Y

      Unsolved Is allow to use the QDrag class in Qt Webassembly?
      Qt for WebAssembly • qdrag qt 6.5.1 webassembly qeventloop qthread • • Yash001

      2
      0
      Votes
      2
      Posts
      42
      Views

      lorn.potter

      Drag and drop has never worked very well in QtWebAssembly.
      But it is working in 6.6.0beta1 single threaded release.

      You need to use asyncify though:
      https://doc.qt.io/qt-6/wasm.html#asyncify

      Good news is, you no longer have to rebuild Qt to get asyncify, you just need to add a linker argument.
      cmake: target_link_options(<target> PUBLIC -sASYNCIFY -Os)
      qmake: QMAKE_LFLAGS += -sASYNCIFY -Os

    • Y

      Unsolved Why Drga and Drop Funcationality is not working with Crome brower?
      Qt for WebAssembly • drag and drop qpainter webassembly qt5.15.2 qmouseevent • • Yash001

      1
      0
      Votes
      1
      Posts
      24
      Views

      No one has replied

    • B

      Unsolved WebAssembly multi canvas "Failed to make context current"
      Qt for WebAssembly • webassembly multi-screen gles2 • • balping

      2
      0
      Votes
      2
      Posts
      348
      Views

      B

      It is indeed a bug, see: https://bugreports.qt.io/browse/QTBUG-106707

    • Renio

      Solved QComboBox behaviour
      Qt for WebAssembly • webassembly • • Renio

      5
      0
      Votes
      5
      Posts
      194
      Views

      Renio

      @lorn-potter I try asap

    • L

      Unsolved onscreen Keyboard popup up with or without focus
      Qt for WebAssembly • webassembly screenkeyboard c++ wasm inputdevice • • Labidi Ahmed

      1
      0
      Votes
      1
      Posts
      260
      Views

      No one has replied

    • B

      Unsolved build job does not create .html file (Message: file not found)
      Qt for WebAssembly • webassembly html emscripten emcc build • • broko_lee

      6
      0
      Votes
      6
      Posts
      455
      Views

      M

      In Qt 6.4 (on macos) Debug build does not generate javascript file...

    • M

      Unsolved "The command line is too long" when building the app
      Qt for WebAssembly • webassembly line too long emsdk • • M1losz

      3
      2
      Votes
      3
      Posts
      404
      Views

      lorn.potter

      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.

    • R

      Unsolved WebAssembly & JavaScript Comparison Fail
      Qt for WebAssembly • webassembly javascript performance comparison • • roberto__belam

      1
      0
      Votes
      1
      Posts
      143
      Views

      No one has replied

    • Renio

      Solved error: undefined symbol
      Qt for WebAssembly • webassembly qt 5.15.0 emscripten mingw 64 bit • • Renio

      2
      0
      Votes
      2
      Posts
      919
      Views

      Renio

      after contact the qt support, they suggest me to replace

      win32: LIBS += -L$$PWD/../../TinyLib/build-TinyLib-Qt_5_15_0_WebAssembly-Debug/ -lTinyLib

      with

      wasm:LIBS += -L$$PWD/../../TinyLib/build-TinyLib-Qt_5_15_0_WebAssembly-Debug/ -lTinyLib
    • M

      Unsolved Link OpenSSL to webassembly works in 5.13.2 but not in 5.15.2 ?
      Qt for WebAssembly • openssl webassembly 5.15 5.13.2 • • Mixlu

      4
      0
      Votes
      4
      Posts
      969
      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 ;)

    • A

      Unsolved Is it possible to embind Qt class that has a signal in emscripten?
      Qt for WebAssembly • webassembly embind emscripten javascript signals & slots • • AliGB

      2
      0
      Votes
      2
      Posts
      283
      Views

      lorn.potter

      I am not sure Qt signals would work. You should certainly be able to so callbacks though.

    • A

      Unsolved How does Qt call C++ functions from JavaScript through webassembly?
      Qt for WebAssembly • javascript export function webassembly • • AliGB

      3
      0
      Votes
      3
      Posts
      1051
      Views

      lorn.potter

      It is possible to call c/c++ functions from javascript as well as call javascript from c/c++.
      Look at
      https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html

    • A

      Unsolved Calling C++ function from JavaScript through Webassembly
      Qt for WebAssembly • webassembly wasm javascript export function • • AliGB

      5
      0
      Votes
      5
      Posts
      1021
      Views

      M

      @lorn-potter

      I figured out how to export custom functions, but there's still a problem with exporting the runtime ones. I am adding the -s EXPORTED_RUNTIME_METHODS=UTF8ToString argument and keep receiving "Uncaught RuntimeError: Aborted('UTF8ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ))" error.

    • M

      Unsolved Which QNetworkReply error for connection timeout ?
      Qt for WebAssembly • webassembly 5.15 timeout • • Mixlu

      2
      0
      Votes
      2
      Posts
      386
      Views

      M

      I just saw that a QNetworkReply::TimeoutError code exists. Shouldn't this code be set when a timeout occurred ? Is this a bug or did I misunderstand something ?

    • ConfusedKeystrokes

      Unsolved Qt WebAssembly Unable to Build: redefinition of '__glewCreateProgram' as different kind of symbol
      Qt for WebAssembly • webassembly build failed qt creator • • ConfusedKeystrokes

      3
      0
      Votes
      3
      Posts
      479
      Views

      ConfusedKeystrokes

      @lorn-potter Thanks for getting back to me!

      I'm trying to build this project:
      https://github.com/herewegoblueno/cs1230-final
      Just to provide context, this works well when built for Mac.

      And yes I am importing GL/glew.h myself.

      Also by the way I've also noticed that the compilers don't recognize the standard libraries like <vector>, <map>, etc (or maybe that's just the static checker? not sure if those will result in compile time errors since I can't build due to glew anyways)

    • ConfusedKeystrokes

      Unsolved Building to WebAssembly: redefinition of '__glewCreateProgram' as different kind of symbol
      Installation and Deployment • webassembly mac qt creator • • ConfusedKeystrokes

      1
      0
      Votes
      1
      Posts
      443
      Views

      No one has replied

    • A

      Unsolved Qt Webassembly number of screens
      Qt for WebAssembly • webassembly screen monitor • • AliGB

      1
      0
      Votes
      1
      Posts
      227
      Views

      No one has replied

    • A

      Solved Qt webassembly and Layouts
      Qt for WebAssembly • glitch layouts webassembly viewtable c++ • • AliGB

      5
      0
      Votes
      5
      Posts
      434
      Views

      A

      Found the problem: I had installed Qt v 6.0.0 with emscripten 1.39.8. documents say 1.39.8 should work with Qt v5.15.0. Works after installing the correct Qt version.

    • M

      Solved Custom c++ main arguments in qtloader.js
      Qt for WebAssembly • webassembly emscripten • • Mixlu

      2
      0
      Votes
      2
      Posts
      323
      Views

      M

      Problem solved by removing the emrun flag. I can now specify custom arguments in the qtloader.js using emscripten's Module.arguments like this :

      Module['arguments'] = ['FirstArg', 'SecondArg'];
    • O

      Unsolved Building Qt5.14.2 for WebAssembly shared returns error.
      Qt for WebAssembly • wasm webassembly webengine webengine qt5 • • Oshio

      3
      0
      Votes
      3
      Posts
      386
      Views

      O

      Hi @SGaist ,
      One thing that made me skeptical about the info on the introduction page, was the affirmative that webassembly doesn't support threads, which is not an absolute true, in fact is relatively simple to enable thread support with the correct emscripten version.
      But everything so far is telling me that is not possible, or at least it will be very hard to compile wasm as shared.