Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

456 Topics 1.8k Posts
  • QMQTT run error on Qt for WebAssembly?

    Unsolved
    1
    0 Votes
    1 Posts
    317 Views
    No one has replied
  • Building Qt5.14.2 for WebAssembly shared returns error.

    Unsolved wasm webassembly webengine webengine qt5
    3
    0 Votes
    3 Posts
    946 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.
  • Webassembly linker errors

    Unsolved
    1
    1 Votes
    1 Posts
    445 Views
    No one has replied
  • Render HTML in Qt WebAssembly

    Unsolved
    1
    0 Votes
    1 Posts
    351 Views
    No one has replied
  • Webassembly issue Project ERROR: Unknown module(s) in QT: webengine

    Solved
    2
    0 Votes
    2 Posts
    699 Views
    C
    I found out that the QtWebEngine module is indeed not available and instead QtWebView is available. After replacing WebEngineView with WebView, the compiling error is gone and the program compiles. But yes QtWebview is unsupported as it is integrated with QtWebengineView
  • Accessing files on the "server side"?

    Unsolved
    2
    0 Votes
    2 Posts
    422 Views
    Pablo J. RoginaP
    @RogueWarrior no experience with webassembly, but by creating and running a Qt app on the embedded device, you could leverage access via any VNC client using the VNC platform plugin i.e. ./yourQtApp -platform vnc
  • HelloWorld Wasm build problem

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    R
    @Amin-Ya Would you please specify what exactly you are referring to when you are saying the C++ path? I seem to be having the same problem here.
  • PROXY_TO_PTHREAD Support

    Unsolved
    3
    0 Votes
    3 Posts
    848 Views
    Ahmed Yarub Hani Al NuaimiA
    @jsulm thank you for the answer. That might work indeed, but the thing is the same application works on Windows, iOS, Mac, Android, and Linux. I'd have to change the logic just to make it work with Wasm. I could easily run non-Qt application simply by proxifying the call to main, is there a way to get that to work with Qt5 apps?
  • Http get request : no body in webassembly

    Solved wasm http http get emscripten
    10
    0 Votes
    10 Posts
    3k Views
    M
    @Ahmed-Yarub-Hani-Al-Nuaimi Oh ok I see, thanks for your time !
  • play rtsp stream in WebAssembly

    Unsolved
    1
    0 Votes
    1 Posts
    469 Views
    No one has replied
  • Build simple QML on WebAssembly

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    K
    @kirill_f Problem solved. I just installed upstream version of emscrypten instead of fastcomp. emsdk install sdk-upstream-1.39.8-64bit emsdk activate sdk-upstream-1.39.8-64bit
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Is the Qt WASM module linked into a project binary?

    Unsolved
    1
    0 Votes
    1 Posts
    269 Views
    No one has replied
  • Qt Lottie on WebAssembly

    Unsolved
    2
    0 Votes
    2 Posts
    529 Views
    lorn.potterL
    I am not even sure how supported QtLottie is on the desktop, but not yet supported for Qt WebAssermbly. I do know that the Qt WebAssembly platform has a few issues like this regarding QLogging and Q_DECLARE_LOGGING_CATEGORY that do not happen on desktop, as we are built statically linked.
  • Export *.xlsx or *.ods in Qt WebAssembly

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    lorn.potterL
    There is file access, both locally and for the system. Since WebAssembly lives in the browsers javascript sandbox, to access file content on the system, outside of the browser, we created QFileDialog::getOpenFileContent and QFileDialog::saveFileContent https://doc.qt.io/qt-5/qfiledialog.html#getOpenFileContent Also, there should be persistent files, but it's a bit broken at the moment in all the releases.
  • float unrepresentable in integer range

    Unsolved
    2
    0 Votes
    2 Posts
    445 Views
    lorn.potterL
    What version of Qt and what version of Emscripten are you using?
  • How to read QueryString params

    Solved
    3
    0 Votes
    3 Posts
    612 Views
    Q
    Hi @lorn-potter . Sorry for my super late reply. Your message was spot on. Not only that but it helped me understand some stuff about wasm that I wasn't very clear about. I did some changes and I got my app up and running with no issues. This is awesome. I'm loving Qt more and more everyday. Thank you very much and warm regards!
  • 0 Votes
    8 Posts
    2k Views
    A
    Thanks for the update. When can we expect this merged? Also why was QNetworkRequest::DefaultTransferTimeoutConstant used for default value? In the documentation https://doc.qt.io/qt-5/qnetworkrequest.html#setTransferTimeout if the function was never called the actual default value is stated to be 0 which is equal to no time limit. DefaultTransferTimeoutConstant is just used as default value if the function was called without any arguments.
  • record audio in WebAssembly

    Solved
    3
    0 Votes
    3 Posts
    688 Views
    N
    @lorn-potter Thank you.I use OpenAL and it works for me.
  • Associate QT WebAssembly with emscripten

    Unsolved
    5
    0 Votes
    5 Posts
    912 Views
    lorn.potterL
    QtCreator does not have full support for using emscripten, unless you use Qt 5.15. Even then it is still experimental and you need to enable the WebAssembly plugin from within QtCreator first. It's just easier to build using the commandline.