Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.3
Description
Even a Binding doesn't work:
Platform.FileDialog { id: openProjectDialog objectName: "openProjectDialog" nameFilters: ["All files (*)", "PNG files (*.png)", "BMP files (*.bmp)", "SLP files (*.slp)", "STP files (*.stp)"] defaultSuffix: projectManager.projectExtensionForType(Project.ImageType) onAccepted: loadProject(file) onFolderChanged: print(folder) Binding { target: openProjectDialog property: "folder" value: project && project.loaded ? project.dirUrl : "" } }
I accepted a fix that made folder actually do something:
https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/250538
but I wonder if we should go a step further and use the folder that was set every time the dialog is opened - while at the same time being careful to respect where the user navigated to? I'm not sure how it should work... we should see how QFileDialog works.