double click 两者方法
Answer 1 - cellDoubleClicked
def fn_init_event(self):
self.tblQuestUserInfo.cellDoubleClicked.connect(self.fn_query_quest_sys_info)
def fn_query_quest_sys_info(self, row, column):
item = self.tblQuestUserInfo.item(row, column)
quest_id = item.text()
Answer 2 - itemDoubleClicked
def fn_init_event(self):
self.tblQuestUserInfo.itemDoubleClicked.connect(self.fn_query_quest_sys_info)
def fn_query_quest_sys_info(self, item):
quest_id = item.text()
参考 document
QTableWidget Class Document