Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

456 Topics 1.8k Posts
  • Code 404 -- Message file not found

    Unsolved wasm error emscripten
    1
    0 Votes
    1 Posts
    867 Views
    No one has replied
  • Compiling QT on ubuntu/ARM for WASM

    Unsolved
    4
    0 Votes
    4 Posts
    852 Views
    lorn.potterL
    Emscripten does not run on native arm on any OS. On Mac M1, it requires the Rosetta 2 emulation to work. "emsdk only officially supports x86_64 today." https://github.com/emscripten-core/emsdk/issues/671
  • Use QHttpMultiPart impossible compile for WebAssembly(maybe bug)

    Unsolved
    2
    0 Votes
    2 Posts
    426 Views
    lorn.potterL
    Because the change that adds multipart support for wasm, 6b171dc6c0c0f0a822b212df77b58b28bd92716c, is not in 5.15.x, but will be part of Qt 6 webassembly. That said, that patch would probably apply fairly cleanly to 5.15 if you want to to recompile Qt.
  • Qt for WebAssembly Checkboxes and Comboboxes displayed wrong

    Unsolved
    1
    0 Votes
    1 Posts
    365 Views
    No one has replied
  • Android chrome - portrait orientation black screen

    Unsolved
    1
    0 Votes
    1 Posts
    301 Views
    No one has replied
  • 0 Votes
    2 Posts
    718 Views
    lorn.potterL
    I am not sure Qt signals would work. You should certainly be able to so callbacks though.
  • QNetworkAccessManager (HTTPS-Request)

    Solved
    4
    0 Votes
    4 Posts
    820 Views
    David_001D
    Thanks, HTTPS interfaces can be used without any problems. Unfortunately, I had a thinking mistake here. Thanks Lorn
  • Qt WebAssembly with OpenCV

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    I
    @linoleo Hey, sorry for replying lately. The problem should be a bug in Firefox like @haiku said. You should use opencv.js instead, it is not solved actually.
  • How to achieve RTSP web-assembly module

    Unsolved
    2
    0 Votes
    2 Posts
    806 Views
    lorn.potterL
    This is on my list of things to do, but probably won't get done. You can use javascript WebRTC API to implement this and use Emscripten's built-in ways to access the javascript API from c++ https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html
  • 0 Votes
    3 Posts
    2k Views
    lorn.potterL
    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
  • Pre-built Qt for WASM with threaing enabled

    Unsolved
    2
    0 Votes
    2 Posts
    426 Views
    lorn.potterL
    Threads are still considered experimental in webassembly, in the browsers as well as Qt WebAssembly. Which is why we do not enable them by default. They require the user to tweak the browsers config settings. They also need to be served from https due to the shared memory. AND they are not real threads, and so work a bit different than unix threads, so it can be a bit tricky.
  • How to set up the Qt for WebAssembly compiler ?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    terma.abaT
    @Anton1978 I wonder if your question actually: 'how to set up WASM compiler in Qt Creator' ? I simply couldn't get this to work (5.15.2). A co-worker had the same trouble independently, so I don't think it was just me. I gave up and worked with only qmake, make. This worked.
  • Webassembly 5.15.0 Win10 won't compile

    Unsolved
    2
    0 Votes
    2 Posts
    521 Views
    lorn.potterL
    Can you try 5.15.1 or 5.15.2, as there was a bug on windows that stopped those files from being copied.
  • Problem running configure for wasm on Windows

    Unsolved
    5
    0 Votes
    5 Posts
    983 Views
    G
    @YongQ wow u r so damn good
  • How to handle closeEvent with the QDialog .open() instead of .exec()?

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    SGaistS
    Just to be sure I understand the issue: you may have multiple documents to save and each asks to save separately ?
  • Which QNetworkReply error for connection timeout ?

    Unsolved webassembly 5.15 timeout
    2
    0 Votes
    2 Posts
    985 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 ?
  • Help Developing New Tool (Open Source)

    Locked Unsolved
    2
    1 Votes
    2 Posts
    364 Views
    SGaistS
    Hi, Please do not the same thread on multiple sub-forum. One is enough Duplicate Closing this one.
  • 0 Votes
    3 Posts
    1k Views
    ConfusedKeystrokesC
    @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)
  • Uncaught error in webassembly but not in android or native with the same qml ui

    Unsolved
    3
    0 Votes
    3 Posts
    672 Views
    R
    Hi, What I'm doing on Android is the following: I build a qml ui and some corresponding c++ and inline js code that make sure that the qml ui can communicate with the android java layer through the android webview utilizing webchannel messageing. See: https://github.com/r0ller/qwa/tree/main/qmlwasm1 Files: main.qml (just the ui logic) main.cpp (opening webchannel port) messageboard.cpp (sending/receiving messages through webchannel port) The java layer passes the call to a c/c++ backend lib via JNI and the returned response is sent back to qml via webmessage channel. The corresponding code: https://github.com/r0ller/qwa/blob/main/Android/qmlwasm1/app/src/main/java/com/bitroller/qmlwasm1/MainActivity.java All that works fine, the error does not appear in the Android but only in the nodejs use case when reloading the client from the nodejs server. However, the ui part what gets loaded from the server is the same what I load in the webview on Android. I also don't get any errors when the project is built with the same qml ui as native. By the way, you can find both the apk and the nodejs code in the repo so running the nodejs variant is just issuing "node index.js" in the qwa_node directory after cloning ;) Installing the apk of course is a few clicks and taps more. (Yesterday I added a springanimated rect to the qml ui which I did not copy over to the android project so there's a difference but that's not the point here.) BR, r0ller
  • TextInput not editable in browser

    Unsolved
    2
    0 Votes
    2 Posts
    600 Views
    SyntaXS
    I noticed, that although I am not able to "write" Text in the input field, I can paste text from elsewhere?