code: def setEditorData(self, editor, index):
          
          editor.blockSignals(True)
          data = index.data()
          dataIndex = editor.findData(data)
          # dataIndex = editor.findData(data, role=Qt.EditRole)
          editor.setCurrentIndex(dataIndex)
          editor.blockSignals(False)
docs: Sets the current data for the editor.
  
          The data displayed has the same value as `index.data(Qt.EditRole)`
          (the translated name of the datatype). Therefor a lookup for all items
          of the combobox is made and the matching item is set as the currently
          displayed item.
  
          Signals emitted by the editor are blocked during exection of this method.
  
          Args:
              editor (QtGui.QComboBox): The current editor for the item. Should be
                  a `QtGui.QComboBox` as defined in `createEditor`.
              index (QtCore.QModelIndex): The index of the current item.