Skip to content
Advertisement

QFileDialog to open multiple files

I am trying to show a dialog box to open multiple files but seems like it is not working. The following is a function defined in my Class:

JavaScript

I thought that the keyword was QFileDialog.ExistingFiles.

What am I doing wrong here?

Advertisement

Answer

You need to use getOpenFileNamesAndFilter instead of getOpenFileNameAndFilter (you’re missing the s).

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement