The reason of such behavior could be that "
character used as a file names separator in the QFileDialog's line edit. I.e. you can write something like "file1" "file2"
to open multiple files. For better understanding on what is going on in this dialog, you can take a look in Qt sources, especially in QFileDialogPrivate::typedFiles()
function (qfiledialog.cpp), where your input is split by "
:
QStringList tokens = editText.split(QLatin1Char('\"'));