def setEditorData(self, editor, index): comboBox = editor if not comboBox: return pos = comboBox.findText(index.model().data(index), Qt.MatchExactly) comboBox.setCurrentIndex(pos)