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. Select a file in Android with QML FileDialog
Forum Updated to NodeBB v4.3 + New Features

Select a file in Android with QML FileDialog

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 117 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    msauer751
    wrote on 25 Jan 2025, 15:58 last edited by
    #1

    Hi,

    in my QML App I want to select a file with FileDialog in QML:

                    FileOpen {
                        id: fileBox
                        fileName: selectedSp.uiImageNeuDatei
                        headerText: "Dateiauswahl"
                        onButtonClicked: selectedSp.onSearchButtonClicked()
                    }
    
                    FileDialog {
                        id: fileDialog
                        title: "Auswahl Bild"
                        onAccepted: selectedSp.onSetFile(fileDialog.selectedFile)
                        visible: selectedSp.uiViewFileDlg.uiValue
                        nameFilters: ["JPG Dateien (*.jpg)"]
                        fileMode: FileDialog.OpenFile
                    }
    

    On Linux and Windows it works without any problems. But on Android I get a strange filename, which can't be open:

    c14d2754-286f-4664-84b8-380f41f90f6a-image.png

    How can select a JPG file in the Download Directory, for example, and open it in my C++ programm?

    THank you for your help.

    BR
    martin

    1 Reply Last reply
    0

    1/1

    25 Jan 2025, 15:58

    • Login

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