有没有办法在保存文件时设置qfiledialog的默认文件名 [英] Is there any way to set the default file name of qfiledialog while saving file

查看:895
本文介绍了有没有办法在保存文件时设置qfiledialog的默认文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为说明。我需要在Qt Quick Application 中使用QFileDialog而不使用任何小部件 。所以我必须在QML中使用它。但是,据我所知,QML中的FileDialog没有设置默认保存文件名的方法/属性。



任何人都可以帮助我吗?



我尝试了什么:



我搜索了Google几天,但没有有价值的线索找到。

解决方案

看来你必须自己实现它或使用像 QML中的高级FileDialog | Kullo [ ^ ]

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.

解决方案

It seems that you have to implement it yourself or use an existing solution like Advanced FileDialog in QML | Kullo[^].


这篇关于有没有办法在保存文件时设置qfiledialog的默认文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆