Two major problem that prevent QT webassembly used in real project.
-
which Qt version is used in your project?
you can file bugs here https://bugreports.qt.io/secure/Dashboard.jspa -
Hi,
- Use must use https for accessing threads which use javascript SharedArrayBuffer. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements
Qt Webassembly QNAM (QNetworkAccessManager) will access secure websockets (wss), just use https in the url. Also QWebSockets. If you need to use a custom certificate, you need to add it to the browser's certificates.
- This is fixed in 6.4 and 6.3 (or should be). See https://codereview.qt-project.org/c/qt/qtbase/+/416609
If this doesn't fix it completely, then please open a new bug report. https://bugreports.qt.io/secure/Dashboard.jspa
-
@lorn-potter
Thanks a lot. It's good news to hear that input bug will be solved soon.
About the QWebsocket, I haven't use QNetworkAccessManager because I don't use http get/post operation, I will try to research more about it. I am just using QWebSocket::sendTextMessage(sendmsg) to send request to server, and use QWebSocket::textMessageReceived(QString) signal to receive the reply from server. -
@lorn-potter I tried 6.4.2 and 6.5.0 Beat2 and still couldn't enter Chinese
-
@lorn-potter
Hi, several monthes passed after I open an issue QTBUG-107139, but haven't found progress. Which version will this problem be solved? -
@zhong-wenqing
The patch
https://codereview.qt-project.org/c/qt/qtbase/+/436295is still in review. I will bump it to the reviewers again.
-
@lorn-potter Thanks, the qt-bug system inform me today, this patch is merged into Qt6.6. I will try it.
-
-
-
@lorn.potter Hi, Is this issue very difficult to resolved? or not important? the new released versions all have this problem.