[PyQt] QFileDialog crash with Gnome + "Desktop Settings (Default)" + QFileDialog.DontUseNativeDialog

PyCoder PyCoder pycoder666 at gmail.com
Sun Aug 29 14:40:48 BST 2010


Hi

I have a lil problem with QFileDialog and i think its a bug but im not
sure...


The code is realy simple:

        contSave = QtGui.QFileDialog(self)
        contSave.setFileMode(QtGui.QFileDialog.AnyFile)
        contSave.setFilter('*')
        contSave.setViewMode(QtGui.QFileDialog.List)
        contSave.setOptions(QtGui.QFileDialog.DontUseNativeDialog)
        contSave.exec_()

This works unter KDE with  "Desktop Settings (Default)" and under Gnome
with  GTK+, Motif, CDE, Plastic, Windows and Clearlooks.

But  if is use "Desktop Settings (Default)" under Gnome QFileDialog crashes
without  a Traceback.

Its the combination of  Gnome + "Desktop Settings (Default)" in qtconfig-qt4
and QFileDialog.DontUseNativeDialog.

I have the same problem under Fedora and Ubuntu with Gnome.

Is it a bug or what?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100829/7b8e4885/attachment.html>


More information about the PyQt mailing list