Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

FildIalod get path file in android



  • Hello
    i have android link problem
    when i call filedialoge the path gives me : " Accepted: content://com.android.externalstorage.documents/document/primary%3ADownload%2Ff"

    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


Log in to reply