Setdata Raises Exit Code -1073741819
I have a subclass of QtGui.QStandardItemModel with setData as follow: def setData(self, index, value, role): if role == QtCore.Qt.EditRole: old = self.itemFromIndex(in
Solution 1:
Oh figured out.
I thought the process would go like:
model.itemChanged.signal -> databaseUpdate() -> setItem() -> tableUpdate()
But instead it was doing:
model.itemChanged.signal -> databaseUpdate() -> tableUpdate() -> setItem()
And since setItem was looking for a index item which was not there anymore(because it got updated), it crashed.
Fixed it by changing the setData return to 'True', or anything.
Post a Comment for "Setdata Raises Exit Code -1073741819"