[Solved] QML FileDialog preset save name.
-
Hey!
So I've got a program where you load a text file. Later, when you have edited the file, I want to save it, so I use the FileDialog. But I want the text field where the user is supposed to enter a filename to be preset by me, as a suggestion. Because it is important that the original file and the edited file has the same name, only in different dialogs. So yeah, how can I access that textfield and preset it?
-
Hi,
AFAIK, there's no way to preset the filename in the current implementation of FileDialog.
Have a look at "advanced-filedialog-in-qml":https://www.kullo.net/blog/advanced-filedialog-in-qml/ instead. It also has a demo application. -
Thanks! That seems to be what Im looking for.