Hello, I'm using QTreeView with QDirModel like this:
QDirModel * model = new QDirModel;
ui->treeView->setModel(model);
ui->treeView->setSelectionMode(QTreeView::ExtendedSelection);
ui->treeView->setSelectionBehavior(QTreeView::SelectRows);
This works fine, however, I'm not sure how to get the details about the files I select. I've got this so far:
QModelIndexList list = ui->treeView->selectionModel()->selectedIndexes();
But not sure what to do now, I'd like to get each file's name and full path. An example would be really great. Thank you.