In QT::QDIR need to display treeview directory structure with filtering specific folders which should not be displayed
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 t开发者_JAVA百科o be hidden.
Using list of folders options in QDIR is there any way to specify the list of restriction folders.
Thanks Mathan
you can use the method : QDir::setNameFilters
ther is an example in the Qt documentation
精彩评论