Windows上的文件夹选择器 [英] Folder chooser on Windows
本文介绍了Windows上的文件夹选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将文件夹称为默认Windows文件夹选择器.
How can I call the folder default windows folder chooser.
我正在使用电话:
QString path = QFileDialog::getExistingDirectory(parent, "", folder, QFileDialog::ShowDirsOnly);
但是此呼叫显示以下对话框:
But this call show the dialog below:
如何选择此对话框作为文件夹选择器?
How can I choose this dialog as folder chooser?
推荐答案
您正确完成了所有操作.我刚刚在带有Qt 4.7.0的XP上进行了测试,它可以按您的预期工作,但是在带有Qt 5.0.2的Windows 8上进行测试时,我会看到普通的文件打开对话框.
You did everything correctly. I just tested this on an XP with Qt 4.7.0 and it works as you expect but when testing on Windows 8 with Qt 5.0.2, I get the ordinary file open dialog.
我建议您将此日志记录为错误.
I suggest you log this as a bug.
这篇关于Windows上的文件夹选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文