Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Access file system...?
Forum Updated to NodeBB v4.3 + New Features

Access file system...?

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
2 Posts 1 Posters 828 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • oria66O Offline
    oria66O Offline
    oria66
    wrote on last edited by
    #1

    Hi, before all, I check out all the topics trying to find a solution to my problem, but the only that help me a little was this comment from @lorn-potter:

    There is a way to 'persist' files, but you need to sync them from the local system into the sandbox.
    https://emscripten.org/docs/api_reference/Filesystem-API.html

    Using the IDBFS you can copy files to a mounted IndexDB filesystem.
    In fact, QSettings on wasm uses this to attempt to persist QSettings.

    But, I keep stuck in the same problem. I try to use a FileDialog (QML) but the app in the Navigator freeze completely, and shows this error:
    "Numeric mode unsupported in the posix collation implementation" in qtloader.js:382.

    Thank you in advance...

    The truth is out there

    1 Reply Last reply
    0
    • oria66O Offline
      oria66O Offline
      oria66
      wrote on last edited by
      #2

      Ok, I found the solution. Thanks to:
      https://stackoverflow.com/questions/56886410/access-local-user-file-on-qt-for-web-assembly

      So, with the help of:

      https://doc.qt.io/qt-5/qfiledialog.html#getOpenFileContent

      The truth is out there

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved