However I found an older discussion about the subject here, it is not clear for me how to get the paths of the selected folders...
The combined codes from the source mentioned above is the following...
class FileDialog(QtGui.QFileDialog):
def __init__(self, *args):
QtGui.QFileDialog.__init__(self, *args)
self.setOption(self.DontUseNativeDialog, True)
self.setFileMode(self.DirectoryOnly)
for view in self.findChildren((QtGui.QListView, QtGui.QTreeView)):
if isinstance(view.model(), QtGui.QFileSystemModel):
view.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
if __name__ == '__main__':
import sys
app = QtGui.QApplication(sys.argv)
ex = FileDialog()
ex.show()
sys.exit(app.exec_())
which is able to select the folder, bit I do not know how to store them in a container.
The selection of files it is easy...like
fileNames = QtGui.QFileDialog.getOpenFileNames(self,'Open Images','',selectedFilter='*.dcm')
I would like to use something like this, can you help me?...sorry for the thumb question.