How to get file path from fileurl in qt android

683 views Asked by At

I am working on qt 5.14.1 with ndk version 21 and sdk version 28. I want to open a kml file using file dialog in qt android. I get a fileurl from file dialog like this,

content://com.android.externalstorage.documents/document/primary%3Adocuments%2FAeroGCS%2FAeroGCSWorkspace%2FAbc5%2FBbb%2FBbb.kml

but I didn't know how to convert this URL into a simple path and read the data from the file. Please tell me how can I convert this URL into a proper android path.

0

There are 0 answers