I have a GUI with a field for file name ( self.ui.lineEditFileName) and I need that the file name goes automatically to the file name field in the QFileDialog and set it to always open in D:\Data.
However I want to be able to get to the last directory location where the last file was saved.
If i remove the 3rd argument of the function this exactly what happens but then i lose the file name signal and the field is blank.
Thanks for any help.
fileName, _ = QFileDialog.getSaveFileName(self, “Save Measurement”, ‘D:\Data\’ +
self.ui.lineEditFileName.text(), “(*.csv)”, options=options)