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?
Servers for Qt installer are currently down

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 3 Jun 2019, 17:52 last edited by
    #1

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

    J J 2 Replies Last reply 4 Jun 2019, 05:17
    0
    • M Mikeeeeee
      3 Jun 2019, 17:52

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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 4 Jun 2019, 05:17 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 4 Jun 2019, 06:53 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
          3 Jun 2019, 17:52

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

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 4 Jun 2019, 06:57 last edited by J.Hilk 6 Apr 2019, 06:57
          #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

          1/4

          3 Jun 2019, 17:52

          • Login

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