Access local user file on Qt for Web Assembly
-
wrote on 4 Jul 2019, 10:53 last edited by
Hi,
I want to access to local files (read binary file) in my software on Qt for Web assembly.It seems there is already a function to do that: QFileDialog::getOpenFileContent. But I can't find any related example to show how to use this function. I'll appreciate that if someone help me how to use this function.
Thanks.
-
Lifetime Qt Championwrote on 4 Jul 2019, 11:45 last edited by mrjj 7 May 2019, 06:35
Hi
Is Web Assembly not sandboxed and hence its not possible to access local files?
Just like anything else in browsers these days ?
Nope. Reading the docs helps ;) -
Hi
Is Web Assembly not sandboxed and hence its not possible to access local files?
Just like anything else in browsers these days ?
Nope. Reading the docs helps ;)@mrjj "This function is used to access local files on Qt for WebAssembly", https://doc.qt.io/qt-5/qfiledialog.html#getOpenFileContent
-
Hi,
I want to access to local files (read binary file) in my software on Qt for Web assembly.It seems there is already a function to do that: QFileDialog::getOpenFileContent. But I can't find any related example to show how to use this function. I'll appreciate that if someone help me how to use this function.
Thanks.
2/4