Qt remembers the last opened folder
I am using QFileDialog :: openfilename to input a file from the user as input and I have specified a default folder that should be displayed when the user dialog is opened. But qt somehow remembers the last opened folder when filedialog is opened multiple times. But I want this default folder to be the original folder shown to the user, not the last folder open. In this I am not doing anything to keep the latest public information anywhere. Please tell me what the problem is and how to fix it.
+3
source to share
2 answers