thanks to wysota i have a QListView containing all files of a chosen folder :-)
folderModel
->setFilter
(QDir::Files);
folderView->setModel(folderModel);
/** folderView->setRootIndex(folderModel->index(folderName)); **/
folderModel = new QDirModel;
folderModel->setFilter(QDir::Files);
folderView = new QListView();
folderView->setModel(folderModel);
/** folderView->setRootIndex(folderModel->index(folderName)); **/
To copy to clipboard, switch view to plain text mode
now i want to select several of these files at once (one clicks select(marks) a file, another click on the same file delects it?) and get them into a list with
QList<QTreeWidgetItem *> selectedItems () const
QList<QTreeWidgetItem *> selectedItems () const
To copy to clipboard, switch view to plain text mode
But how can i enable a selection of multiple items for my listview?
will QItemSelectionModel be an option and if yes, how can i use it to my view?
Bookmarks