-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
Essentially we want code that works with QFile to also work for wasm.
The proposed solution uses an in memory file that is kept alive by QFile objects.
When the last QFile object disappears so does the file.
We will use the theme logic to delegate to our own file dialog. This means we
can no longer access the inmemory filesystem that emscripten provides.
Also, the filedialog can not return filenames as the file would be gone by
the time the user tries to use it. Instead it is necessary to use exec and attach
to the signal.
For Gerrit Dashboard: QTBUG-125307 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
562724,9 | wasm: Add QWasmFile to be able to read local files in wasm | dev | qt/qtbase | Status: NEW | 0 | 0 |
620807,1 | wasm: Remove 'touch' make option when building for webassembly | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |