How do I open file Explorer and access files on IOS and android?
-
@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 -
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");
-
@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.