从this question的回答中,我找到了访问QTableView中所选行的第一列的方法。但是我如何访问最后一列,而不对列号进行硬编码?
itmIndex = self.viewInQuestion.currentIndex()
id = itmIndex.sibling(itmIndex.row(), -1)
不起作用。有什么建议么?
从this question的回答中,我找到了访问QTableView中所选行的第一列的方法。但是我如何访问最后一列,而不对列号进行硬编码?
itmIndex = self.viewInQuestion.currentIndex()
id = itmIndex.sibling(itmIndex.row(), -1)
不起作用。有什么建议么?