In my program i'm using tree view with a QFileSystemModel...
But i'm unable to set a default root path in that.....
i want to display a particular directory to display, whn program executes.....But it is showing c:\, d:\ and e:\ always...
what should i do?
code i tried.....But its not taking that path as default....
Qt Code:
dirmodel =new QFileSystemModel(this); dirmodel->setRootPath(sPath); ui->treeView->setModel(dirmodel);To copy to clipboard, switch view to plain text mode
Bookmarks