Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Poorly searched most likely.
I don't know how in PyQT5, but most likely the same as in PySide2, where I did this:
options = QtWidgets.QFileDialog.DontResolveSymlinks | QtWidgets.QFileDialog.ShowDirsOnly
dir_cur = QtCore.QDir.currentPath() is optional.
directory = QtWidgets.QFileDialog.getExistingDirectory(None, "Find Files", dir_cur, options)
if directory:
do what you want here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question