Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

460 Topics 1.8k Posts
  • relative path to external resource

    Unsolved
    2
    0 Votes
    2 Posts
    784 Views
    lorn.potterL
    @SyntaX You would need to preload the files at compile time. https://emscripten.org/docs/tools_reference/emcc.html#emcc-preload-file
  • Qt Webasssembly - Pass URL parameter to QML

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    SyntaXS
    This solution works fine for get parameter, I was wondering if this is possible for post too? Or is there another solution to this, so I don't have to show the parameter directly in the address ?
  • Unable to run an example using MQTT

    Solved
    5
    0 Votes
    5 Posts
    919 Views
    N
    Hi @JKSH , Now it's clear enough what I have to do, then I will try to build the source code for Qt WebAssembly and generate the necessary set of libraries. I appreciate your help on this! Thanks.
  • How to use SQLite in Qt WebAssembly

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    S
    @JonB I know Qtsql module not supported in Wasm. i believe wasm supports virtual file system and tried QFile read and write operation. why Qt still not support for SQL? even i need Sqlite should work on wasm. @lorn-potter can you please answer for this? thanks,
  • QMQTT run error on Qt for WebAssembly?

    Unsolved
    1
    0 Votes
    1 Posts
    326 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
    1k 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
    456 Views
    No one has replied
  • Render HTML in Qt WebAssembly

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

    Solved
    2
    0 Votes
    2 Posts
    724 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
    445 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
    893 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
    4k 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
    483 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
    295 Views
    No one has replied
  • Qt Lottie on WebAssembly

    Unsolved
    2
    0 Votes
    2 Posts
    558 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
    461 Views
    lorn.potterL
    What version of Qt and what version of Emscripten are you using?