Hi all,<br>
<br>
I'm trying to read in files in my PyQt app, so naturally I'm using QFileDialog. The way I read<br>
the Qt docs, you can use multiple file type filters in the dialog by using ;; as a separator between<br>
the type lists in the filter string. Like this:<br>
<br>
def fileOpen(self):<br>
filename =
QFileDialog.getOpenFileNames("", "JPG (*.jpg);;PGM (*.pgm)"), self,
"Read file", "Read file")<br>
...<br>
<br>
I've found several examples on the net (C++ though, not Python) which do this, so I figured it should work,<br>
but what I got instead of three filters: "JPG (*.jpg)", "PGM (*.pgm)", and the default "All Files (*)", were three filters<br>
of which two were identical instances "JPG (*.jpg);;PGM (*.pgm)", and the third the default one. Any idea what<br>
the problem is here? I'm using Qt 3.3.3 and PyQt 3.13. <br clear="all"><br>-- <br>Alex Borghgraef