On 11/11/2010 3:22 PM, Gaëtan Podevijn wrote:
When I launch a Python environment in a terminal, and I try to
instanciate a QFileSystemModel, I have a segmentation fault:
>>> model = QFileSystemModel()
>>> model.setRootPath(QDir.homePath())
Segmentation fault
However, and I really don't understand, the attached file works well !
You need to create a QApplication to set up Qt before creating nearly
all Qt objects except the absolute simplest such as QPoint, etc. The
example you attached creates a QApplication before creating the
QFileSystemModel.
Dan
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt