Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. FildIalod get path file in android
Qt 6.11 is out! See what's new in the release blog

FildIalod get path file in android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 262 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ericMath
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved