Hi all:
I am using QFileSystemModel but it always show expandable or expanded icon
FileBrowser::FileBrowser()
{
model = new QFileSystemModel;
model
->setRootPath
(QDir::rootPath());
setModel(model);
setColumnHidden( 1, true );
setColumnHidden( 2, true );
setColumnHidden( 3, true );
setHeaderHidden(true);
}
FileBrowser::FileBrowser()
: QTreeView()
{
model = new QFileSystemModel;
model->setRootPath(QDir::rootPath());
setModel(model);
setColumnHidden( 1, true );
setColumnHidden( 2, true );
setColumnHidden( 3, true );
setHeaderHidden(true);
}
To copy to clipboard, switch view to plain text mode
how to fix it
2..png1..png
Bookmarks