Exact problem: Connecting a QTableView selectionChanged signal creates a segfault with PyQt
I have a QListView and I want to call a function when an element is selected:
self.server_list = QtGui.QListView(self.main_widget) self.server_list_model = QtGui.QStandardItemModel() self.server_list.setModel(self.server_list_model) self.server_list.selectionModel().selectionChanged.connect(self.server_changed)
But, when it reaches the last line where I use the selection model, the application crashes. Not with tracing, but with "appname stopped working" from Windows. I am pretty sure segfault.
BUT, when I use PyQt4, it works fine. I use PySide because it is LGPL.
Yes, I am in the latest versions of everything (PySide: 1.2.1, Python 2.7.5, Qt 4.8.5).
Can anyone help me with this?
python segmentation-fault qt crash pyside
user1438098
source share