Reputation: 1
i have android link problem when i call filedialoge the path gives me : " Accepted:
content://com.android.externalstorage.documents/document/primary%3ADownload%2Ff"
instead of / gives me% 2 or% 2A
FileDialog {
id:configFile
//selectExisting: false
modality: Qt.WindowModal
nameFilters: ["Text files (*.s)"]
onAccepted: {
console.log("Accepted: " + configFile.fileUrl)
MainWindow.loadconfigfile(configFile.fileUrl)
}
onRejected: { console.log("Rejected") }
}
for qt5 information
Basé sur Qt 5.13.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
Built on Oct 4 2019 04:22:26
for android android_arm64_v8a
I tested the following example https://github.com/kullo/qml-file-dialog-demo but it gives me the same problem
Upvotes: 0
Views: 888
Reputation: 63
I've got the same issue and solution can be: decodeURIComponent(configFile.fileUrl).
Upvotes: 1