Hi ,
I using filesystem model in my program to display the filesystems....
Its working fine, it displays all the files and directoris including Dot and DotDot....
But i dont want to display the "DotDot" hence i used filter as shown below, unfortunately its not working....IT DISPLAYS DOTDOT ALSO....
Please somebody tell me whats wrong here...
Qt Code:
dirmodel =new QFileSystemModel(this); dirmodel->setRootPath(sPath); ui->treeView->setModel(dirmodel); ui->treeView->setRootIndex(dirmodel->index(sPath));To copy to clipboard, switch view to plain text mode
Bookmarks