在 QT::QDIR 中需要显示树形目录结构并过滤不应显示的特定文件夹
使用QT::QDIR,我尝试在Treeview中显示目录集,就像当您选择文件夹图标时在Windows资源管理器中显示的那样。
我成功地在树视图中显示文件夹。但有些文件夹不需要显示或需要隐藏。
使用QDIR中的文件夹选项列表可以指定限制文件夹列表。
谢谢 马森
Using QT::QDIR, i m trying to display the set of directories in Treeview as it is displayed in Windows explorer when u select the folders icon.
I succeeded in displaying the folders in treeview. But there are certain folders need not to be displayed or needs to be hidden.
Using list of folders options in QDIR is there any way to specify the list of restriction folders.
Thanks
Mathan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下方法: QDir::setNameFilters
Qt 文档中有一个示例
you can use the method : QDir::setNameFilters
ther is an example in the Qt documentation