Thank you, Piotr -- I'm working with 6.9.0-beta2 and (now) compiling it
with 3.1.70. I have also now found the chrome://flags page and have tried
my project with both chrome stable (131.0.6778.204) and beta
(133.0.6943.35), but with no success for the following use case.
I'm trying to get a local file copied into the WASM application, using
QFileDialog::getOpenFileContent().
Please forgive the attachment, but do you expect what I've got to work in
6.9.0-beta2 and chrome?
Best Regards,
Glen

On Thu, Jan 30, 2025 at 5:47 AM Piotr Wierciński <piotr.wiercin...@qt.io>
wrote:

> Hi!
> The correct version of Emscripten for Qt 6.9 is 3.1.70, it has been
> updated recently in `QtPublicToolchainWasmHelpers`.
> As for support of JSPI, `-sASYNCIFY=2` should work in Emscricpten 3.1.56.
> However, in 3.1.59 it got deprecated in favor of `-sJSPI` flag.
> It is documented here:
> https://github.com/emscripten-core/emscripten/blob/main/ChangeLog.md#3159---043024
> .
> Please note that using JSPI requires enabling it via experimental flag in
> Chrome.
>
> There is still some work required for Qt to work smoothly with JSPI, but
> we are on our way to get there.
>
> Regards,
> Piotr Wierciński
>
>
> > -----Original Message-----
> > From: Interest <interest-boun...@qt-project.org> On Behalf Of Glen Mabey
> > Sent: Thursday, January 23, 2025 6:41 PM
> > To: interest@qt-project.org
> > Subject: [Interest] appropriate versions of emscripten for 6.9
> >
> > It looks like (in QtPublicToolchainWasmHelpers.cmake) that the official
> version of emsdk to use with 6.9 will be 3.1.56 (same as 6.8).
> > I'm trying (unsuccessfully so far) to get a QFileDialog to pop open from
> my QML app.
> > I have been working to pursue the appropriate JSPI compile options, yet
> it seems that it (-sASYNCIFY=2) isn't supported in 3.1.56.
> > So, I realize that JSPI isn't necessarily going to be supported in 6.9,
> but it's apparent (from the references to JSPI in the docs) that y'all are
> working towards that destination eventually (but not there yet).
> > Or, is it just that QtPublicToolchainWasmHelpers.cmake needs to be
> updated?
> > If not, then is there an emscripten version that you *have* had good
> success with?
> >
> > Best Regards,
> > Glen
>

Attachment: minimal_wasm_FileDialog.tar
Description: Unix tar archive

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to