model = new QFileSystemModel;model->setResolveSymlinks(true);root = model->setRootPath(QDir::rootPath());view->setModel(model);view->setRootIndex(model->index(root));
model = new QFileSystemModel;model->setResolveSymlinks(true);proxySortModel = new DirectorySortFilterProxyModel;proxySortModel->setDynamicSortFilter(true);proxySortModel->setSourceModel(model);root = model->setRootPath(QDir::rootPath());view->setModel(proxySortModel);view->setRootIndex(proxySortModel->mapFromSource(root));