当前正在使用pyqt5填充QwidgetTable,我已将数据成功填充到表中。在我的表中有此数据,我想选择所选项目的索引。有人可以指导我如何做吗?这是我选择所选项目的循环:
for self.item in mytable.selectedItems():
self.selected_item = self.item.text()
print("selected item is: "+self.selected_item) #Success
#I want to pick the index of my "self.selected_item" here