Skip to content

Qt for WebAssembly

Specific issues when using Qt for WebAssembly

454 Topics 1.8k Posts
  • how to display korean characters in qt/qml app on web?

    Moved Unsolved
    5
    0 Votes
    5 Posts
    563 Views
    SGaistS
    You should check what is happening using FontLoader's status
  • How to Run a Qt WebAssembly App on an Nginx Server?

    Solved
    4
    0 Votes
    4 Posts
    902 Views
    M
    @MeatBerry Hello. How did you do it? Could you explain the steps below?
  • Is allow to use the QDrag class in Qt Webassembly?

    Unsolved qdrag qt 6.5.1 webassembly qeventloop qthread
    2
    0 Votes
    2 Posts
    516 Views
    lorn.potterL
    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
  • 0 Votes
    1 Posts
    283 Views
    No one has replied
  • External QML module files not found with WebAssembly but found with MSVC2019

    Solved
    2
    0 Votes
    2 Posts
    258 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
    2k 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
    716 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
    350 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
    176 Views
    No one has replied
  • Qt6.5.0 WebAssembly-DataVisualization does not display properly

    Unsolved
    4
    0 Votes
    4 Posts
    751 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
    1k 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
    167 Views
    No one has replied
  • How to modify button display text in html5?

    Unsolved
    6
    0 Votes
    6 Posts
    509 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
    328 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
    400 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
    417 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
    184 Views
    No one has replied
  • Qt 6.6.0 which version of emsdk should i use

    Solved
    3
    0 Votes
    3 Posts
    658 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
    694 Views
    M
    @lorn-potter android
  • WebAssembly nested dialog help...

    Unsolved
    1
    0 Votes
    1 Posts
    234 Views
    No one has replied