[PyQt] filterSelected

Mathe Zoltan mazotyo at yahoo.fr
Mon Sep 15 17:01:06 BST 2008


Hi,
I have a problem the filterSelected dosn't work in qt4. I am using the following code.
saveDialog = QFileDialog(self)
 self.connect(saveDialog, SIGNAL("filterSelected(const QString &)"),self.filter ) 
filters = ['*.opts' ,'*.xml','*.txt']    
saveDialog.setFilter(';;'.join(filters))
 fileName = saveDialog.getSaveFileName(self, self.tr("Save Files"),
                                                 QDir.currentPath(),
                                                 ';;'.join(filters))
Dou you know what is the problem? I have no idea what is wrong.
Thank's,
Zoltan




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080915/fa0a2935/attachment.html


More information about the PyQt mailing list