Select a file in Android with QML FileDialog
Unsolved
Mobile and Embedded
-
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:
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