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
Forum Updated to NodeBB v4.3 + New Features

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 2 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.
  • A Offline
    A Offline
    alizadeh91
    wrote on 4 Jul 2019, 10:53 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.

    J 1 Reply Last reply 5 Jul 2019, 06:12
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 4 Jul 2019, 11:45 last edited by mrjj 7 May 2019, 06:35
      #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 ;)

      J 1 Reply Last reply 5 Jul 2019, 06:11
      0
      • M mrjj
        4 Jul 2019, 11:45

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

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 5 Jul 2019, 06:11 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
          4 Jul 2019, 10:53

          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.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 5 Jul 2019, 06:12 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

          4/4

          5 Jul 2019, 06:12

          • Login

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