Qt and files in shared folders

删除回忆录丶 提交于 2019-12-02 07:09:27

问题


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.


回答1:


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:

  • QFileDialog alternative that uses default file dialog defined by OS?

In previous versions, there was no easy way to show network shares in the QFileDialog on Windows.



来源:https://stackoverflow.com/questions/4818108/qt-and-files-in-shared-folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!