How can i save my files in a specific directory ?
Unsolved
General and Desktop
-
@imene
The one nameddir
for which you are presently passingQDir::rootPath()
?Note that this does not force the user to save in that directory, it starts them there but they could still navigate to a different directory if they want. Depends whether you have an absolute requirement.
-
Additionally, while you can specify any directory you want with that parameter, the QStandardPaths class may be useful if you want to specify the user's Documents or Desktop (and others) folder.