Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Access local user file on Qt for Web Assembly
QtWS25 Last Chance

Access local user file on Qt for Web Assembly

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5wasmfile read
4 Posts 3 Posters 2.6k Views
  • 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.
  • A Offline
    A Offline
    alizadeh91
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      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 ;)

      jsulmJ 1 Reply Last reply
      0
      • mrjjM mrjj

        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 ;)

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @mrjj "This function is used to access local files on Qt for WebAssembly", https://doc.qt.io/qt-5/qfiledialog.html#getOpenFileContent

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        3
        • A alizadeh91

          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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @alizadeh91 See https://stackoverflow.com/questions/56886410/access-local-user-file-on-qt-for-web-assembly

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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