raidionics / Raidionics

Software for automatic segmentation and generation of standardized clinical reports of brain tumors from MRI volumes

Home Page:https://raidionics.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Multiple file selection

jpdefrutos opened this issue · comments

Current solution only support selection of multiple files. This supports selection of multiple folders.

file_system_model = QFileSystemModel()

file_list_view = QListView()
file_list_view.setModel(file_system_model)
file_list_view.setSelectionMode(QAbstractItemView.ExtendedSelection)        # Press CTRL to select multiple items, SHIFT for a range
file_list_view.setSelectionMode(QAbstractItemView.MultipleSelection)         # Select/deselect multiple items by clicking on them

This is tied to another issue: #7

Should be easy to add, just need to create a custom QDialog widget that includes this file/folder selection system.

This feature is not needed, as it is possible to provide a folder structure as input instead, which is more convenient as it reproduces the same output directory tree as output.

Resolved in 2c57421.