QFileSystemModel *model;...model = new QFileSystemModel;model->setRootPath("");ui->treeView->setModel(model);