Qt和共享文件夹中的文件 [英] Qt and files in shared folders
本文介绍了Qt和共享文件夹中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用Qt来选择/打开共享文件夹上的文件吗? 我尝试使用QFileDialog,但是似乎没有标准"资源管理器中的网络"类别.
Can I use Qt to pick/open files on shared folder? I've tried to use QFileDialog, but it seems that there is no "network" category, as in standrd windows explorer.
推荐答案
您需要指定要使用的Qt版本. 4.7+版本支持本机文件对话框,默认情况下使用它们.在此处查看已接受的答案:
You need to specify which version of Qt you are using. Versions 4.7+ have support for native file dialogs and use them by default. See the accepted answer here:
在以前的版本中,没有简单的方法可以在Windows的QFileDialog中显示网络共享.
In previous versions, there was no easy way to show network shares in the QFileDialog on Windows.
这篇关于Qt和共享文件夹中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文