Details
-
Suggestion
-
Resolution: Won't Do
-
P4: Low
-
5.14.2
-
None
-
-
2022wk44FOQtforAndroid, 2022wk46FOQtforAndroid, 2022wk48FOQtforAndroid, 2022wk50FOQtforAndroid, 2022wk52FOQtforAndroid
Description
Android doesn't use normal URIs like:
file:///path_to_file
Instead of that, in content providers you will have something like this:
content://com.example.app.provider/a_lot_of_data
This format can be different in Android activities which provide any files (FileDialog.fileUrl in QML) or only images (not implemented in Qt, I implemented it myself in my project, see PhotoDialog). That's why we need a build-in way to convert these URIs to normal paths, like a function:
QString QtAndroid::uriToRealPath(const QString &uri);
I have examples of implementation in my project:
Attachments
Issue Links
- relates to
-
QTBUG-84572 Provide QUrl to Qt path conversion utils
- Open
-
QTBUG-85238 Use FileProvider for OpenUrl() for Android
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...