开发者

In QT::QDIR need to display treeview directory structure with filtering specific folders which should not be displayed

开发者 https://www.devze.com 2023-03-29 13:35 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消