David Townshend  committed b81f234

Fix for a PySide bug where it iterates over the result of

  • Participants
  • Parent commits 23ceec6

Comments (0)

Files changed (2)

File qte/

         return widget
     def setEditorData(self, editor, index):
-        value =
+        value = index.model().data(index, _qt.Qt.EditRole)
     def setModelData(self, editor, model, index):

File qte/

         if model is not None:
+    def data(self, index, role):
+        # Fix some perculiar PySide bug where it iterates over the result.
+        return self.sourceModel().data(self.mapToSource(index), role)
     def filterFunction(self, column:'column'):
         Return the filter function and role as set by `setFilterFunction`.