For a simple file dialog like:
from PyQt5.Qt import *
import sys
app = QApplication(sys.argv)
OpenFile = QFileDialog()
filenames = OpenFile.getOpenFileNames()
print(filenames)
Shift-select works to select multiple items, but Ctrl/Cmd+A doesn't. Is this an OS thing, or should it be enabled in a certain way in PyQt5?
Edit: The reason why it doesn't work is because of this: https://bugreports.qt.io/browse/QTBUG-17291
Qt expects a menubar with a keyboard shortcut, and a QFileDialog has no menubar, thus lacking shortcuts like "select all".
QFileDialog::DontUseNativeDialog
flag. – icwebndev