Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How do I open file Explorer and access files on IOS and android?
Forum Updated to NodeBB v4.3 + New Features

How do I open file Explorer and access files on IOS and android?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 1.8k 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.
  • M Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Hi!
    How do I open file Explorer and access files on IOS and android?

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • M Mikeeeeee

      Hi!
      How do I open file Explorer and access files on IOS and android?

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

      @Mikeeeeee Which file explorer?
      Do you mean you want to have a possibility to select and open a file in your app?
      https://doc.qt.io/qt-5/qfiledialog.html

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

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mikeeeeee
        wrote on last edited by
        #3

        If I do so, it turns out a very inconvenient interface for the phone and it is not clear where you can find the necessary folders and files that can be seen when connected to USB. Are there any other options?

        QString str = QFileDialog::getOpenFileName(0, "Open Dialog");
        
        1 Reply Last reply
        0
        • M Mikeeeeee

          Hi!
          How do I open file Explorer and access files on IOS and android?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by J.Hilk
          #4

          @Mikeeeeee said in How do I open file Explorer and access files on IOS and android?:

          Hi!
          How do I open file Explorer and access files on IOS and android?

          The answer is, you don't

          iOS has no fileSystem like a DesktopOS or android.

          if you want your app to access data/files from other apps or share data/files with other apps, you'll have to write native code for that.

          How to do that, take a look at this great blog post

          https://blog.qt.io/blog/2017/12/01/sharing-files-android-ios-qt-app/

          There's no build in Qt feature for that (yet), so you'll have to write your own.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          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