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

Hans-Peter Jansen hpj at urpla.net
Mon Sep 6 09:47:45 BST 2010


On Sunday 29 August 2010, 15:40:48 PyCoder PyCoder wrote:
> 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?

Install the debug packages of Qt4, sip and PyQt and run your app under gdb 
control. When it crashes, type bt, post the results (with line wrap 
switched _off_ for the backtrace).

Pete


More information about the PyQt mailing list