Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

452 Topics 1.8k Posts
QtWS25 Last Chance
  • 0 Votes
    1 Posts
    229 Views
    No one has replied
  • External QML module files not found with WebAssembly but found with MSVC2019

    Solved
    2
    0 Votes
    2 Posts
    198 Views
    Marko StankeM
    @Marko-Stanke The issue was that I was missing the import path since in WebAssembly the pathing is a bit different. Adding: engine.addImportPath("qrc:/"); solved the issue.
  • internationalization support

    Solved translations
    15
    1 Votes
    15 Posts
    1k Views
    JonBJ
    @Gilboonet Nowhere did I criticize you at any point. Not once. Just tried to help. Politely, unlike your reponse. Since you have expressed your opinion of my time and efforts in trying to help you, could you now please get off my case and stop putting in my name in your posts to express how dissatisfied you are with my unpaid efforts to aid you. Thanks.
  • Qt WebAssembly Widget Buttons not responding

    Unsolved
    7
    0 Votes
    7 Posts
    557 Views
    R
    @SGaist said in Qt WebAssembly Widget Buttons not responding: Depending on what you need these files for, you can use Qt's resource system. I think this is the best approach. Other way is using QNetworkAccessManager to download the image, this has the benefit that you can download images from external websites as well, something like: QNetworkAccessManager *manager = new QNetworkAccessManager(this); QNetworkReply *reply = manager->get(QNetworkRequest(QUrl("https://domain/image_url.jpg"))); connect(manager, &QNetworkAccessManager::finished, [&](QNetworkReply *reply){ qWarning() << "replyFinished"; QPixmap *image = new QPixmap(this); image->loadFromData(reply->readAll()); ui->label->setPixmap(QPixmap(*image)); }); connect(reply, &QIODevice::readyRead, [](){qWarning() << "reply";}); connect(reply, &QNetworkReply::errorOccurred, [](){qWarning() << "errorOccurred";});
  • Some of my shortcuts don't work on Web Assembly

    Solved
    2
    0 Votes
    2 Posts
    276 Views
    GilboonetG
    I changed the rotation keyboard shortcut to / to rotate left and * to rotate right Alt for 15° rotation Ctrl for 5° rotation Ctrl and Shift for 1° rotation It works fine like that both on Desktop version and Web Assembly version. I read about gesture but didn't understand how it works so for the moment I will only use keyboard shortcuts.
  • 0 Votes
    1 Posts
    147 Views
    No one has replied
  • Qt6.5.0 WebAssembly-DataVisualization does not display properly

    Unsolved
    4
    0 Votes
    4 Posts
    481 Views
    lorn.potterL
    When I run it and check the browsers console output, I see the message: "Shadows are not yet supported for OpenGL ES2"
  • Using OpenSSL/Secure Websockets with Qt WebAssembly

    Unsolved
    4
    0 Votes
    4 Posts
    996 Views
    lorn.potterL
    @pgmQt WebAssmebly uses the browsers ssl stack. Just feed to https:// url
  • Hello world program already fails when using an anchor

    Unsolved
    1
    0 Votes
    1 Posts
    146 Views
    No one has replied
  • How to modify button display text in html5?

    Unsolved
    6
    0 Votes
    6 Posts
    396 Views
    JonBJ
    @mirro I have not used WebAssembly. The following is my understanding. You can only access the webassembly page via the JavaScript DOM. Qt QWebChannel lets you do that. I ask again, and will not repeat further: What are you actually trying to achieve with "How to pass parameters between webassembly for qt and htm5?"? Maybe you do not want a full webassembly application but instead just a QWebEnginePage, I don't know.
  • Why can't new webassembly projects find qt variable types?

    Solved
    3
    0 Votes
    3 Posts
    244 Views
    lorn.potterL
    For one, you need to use the correct emscripten version for Qt version, as detailed in: https://doc.qt.io/qt-5/wasm.html#install-emscripten or https://doc.qt.io/qt-6/wasm.html#installing-emscripten
  • Why can't I find compiler 'em++' when installing wasm directives?

    Solved
    3
    0 Votes
    3 Posts
    298 Views
    M
    @JonB Hi~,How does the qmake command set the path to D:\emsdk\em++?
  • Qt 6.5 WASM Failing to start on iOS or Safari

    Unsolved
    2
    1 Votes
    2 Posts
    354 Views
    AkaiA
    Here is the same code compiled with Qt 6.4.3 and emsdk 3.1.14: http://bombmining.surge.sh/ This runs on Safari and iOS fine - and from the looks of it there have been a number of changes in the HTML, and perhaps elsewhere too between this version Qt 6.4.3 emsdk 3.1.14 and the Qt 6.5 emsdk 3.1.25 version that isn't running on iOS and Safari Any help would be greatly appreciated, Thanks!
  • error for qt webassembly build example

    Unsolved
    1
    0 Votes
    1 Posts
    146 Views
    No one has replied
  • Qt 6.6.0 which version of emsdk should i use

    Solved
    3
    0 Votes
    3 Posts
    549 Views
    lorn.potterL
    To be safe, Emscripten 3.1.25 will work, but you could also use latest, but know that one has not been extensively tested with Qt.
  • Wasm mobile native keybord

    Unsolved
    6
    0 Votes
    6 Posts
    469 Views
    M
    @lorn-potter android
  • WebAssembly nested dialog help...

    Unsolved
    1
    0 Votes
    1 Posts
    205 Views
    No one has replied
  • MQTT disconnects in WebAssembly

    Solved
    3
    0 Votes
    3 Posts
    716 Views
    monettesM
    @Espoo I modified my websocket code using the sample from Qt and upgraded to 6.4.2. MQTT works fine now in WASM.
  • ColorDialog QML in WASM not working

    Unsolved
    1
    0 Votes
    1 Posts
    189 Views
    No one has replied
  • Linux TextInput

    Unsolved
    3
    0 Votes
    3 Posts
    309 Views
    monettesM
    @lorn-potter I'm using 6.4.2