Click here to Skip to main content
15,888,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,as the description.I need to use the QFileDialog in Qt Quick Application without any widget. So I have to use it in QML. However, FileDialog in QML has no method/property to set the default saving file name so far as I know.

Can anyone help me?

What I have tried:

I have searched Google couple of days, but no valuable clues found.
Posted
Updated 2-Mar-17 22:28pm
v2
Comments
Richard MacCutchan 3-Mar-17 3:36am    
Have you tried reading the QFileDialog documentation?

1 solution

It seems that you have to implement it yourself or use an existing solution like Advanced FileDialog in QML | Kullo[^].
 
Share this answer
 
Comments
Charly LEE 5-Mar-17 20:29pm    
Hi,that advanced FileDialog is unusable with no widget application actually. I still use the FileDialog in qml without the default file name when saving files.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900