I am a newbie in QT. I am working on a app where I need to display the FileSystem using a treeview.
Basically I have a widget in my .ui file on which I have put a Treeview. Then in my .cpp file I have written the following code:
Qt Code:
model = new QFileSystemModel(this); ui->treeView->setModel(model);To copy to clipboard, switch view to plain text mode
In my .h file I have put the following:
When I run the app, it displays the file system inside the treeview but it also shows Name, Type, Size, DateModified above it. I want to get rid of these.
How can I achieve it?
Bookmarks