You are clueless how to solve the crash issue due to QFileDialog static calls?
If you have confirmed that there is no issue in your code then try the work around proposed below.
Actually crash is deep inside Gnome's libraries. If you ran your app in KDE, it would probably work. Suggested workaround is, set DontUseNativeDialog option to QFileDialog. Then you will get Qt's own file dialog instead of the one native to your desktop. Unless it is libpng which causes the crash.
e.g.
QString fileName = QFileDialog::getOpenFileName (this, tr("Open File"), "/home",
tr("Images (*.png *.xpm *.jpg)"), 0,
QFileDialog::DontUseNativeDialog);
Related links:
If you have confirmed that there is no issue in your code then try the work around proposed below.
Actually crash is deep inside Gnome's libraries. If you ran your app in KDE, it would probably work. Suggested workaround is, set DontUseNativeDialog option to QFileDialog. Then you will get Qt's own file dialog instead of the one native to your desktop. Unless it is libpng which causes the crash.
e.g.
QString fileName = QFileDialog::getOpenFileName (this, tr("Open File"), "/home",
tr("Images (*.png *.xpm *.jpg)"), 0,
QFileDialog::DontUseNativeDialog);
Related links:
- http://lists.trolltech.com/qt-interest/2004-10/msg01033.html
- http://www.qtcentre.org/archive/index.php/t-37767.html