Thank you d_stranz

I found a way. everything work as I expected except one thing. I did this by re implementing QSqlRelationalDelegate as this:
Qt Code:
  1. class mydelegate(QSqlRelationalDelegate):
  2. def __init__(self, parent=None):
  3. super().__init__()
  4. self.tab=parent
  5.  
  6. def setEditorData(self,editor,index):
  7. if index.column()==2:
  8. test= ((self.tab.selectionModel().currentIndex().siblingAtColumn(1).data()))
  9. editor.model().setFilter("type_IDs like '"+test+"%'")
  10. return super().setEditorData(editor,index)
To copy to clipboard, switch view to plain text mode 


the only problem remains is changing an item in column 1 doesn't changes items in column 2 automatically and I have to modify second Column manually else it remains wrong option.
for example if column 1 be "IC" and Column 2 be "Timer" and then i change column 1 to "Transistor" column 2 remains "Timer" unless I edit that too.

how to solve this?