QML FileDialog, selecting folder and file
-
Hello,
I'm trying to use FileDialog to select either a single file or a single folder (within the same dialog).
My understanding from the documentation page is that it is possible.FileDialog provides a basic file chooser: it allows the user to select existing files and/or directories, or create new filenames.
However when setting selectFolder to true I can only select folders. Not setting it true, the folders can only be opened not selected. I've also tried adding "Directories" to my nameFilters but it doesn't work..
Is it possible to select either a folder or a file from the same FileDialog ?
Thanks ! -
@EmilieG
I am not a QML user, but I don't think so (given what you have tried), despite the "files and/or directories" in the docs.
Please read through all of https://stackoverflow.com/questions/33671350/how-to-select-multiple-files-and-directories-with-qml-filedialog (including all the comments) and see what you think!