cellDoubleClicked text python

前端 未结 1 1588
野的像风
野的像风 2021-01-23 18:10

Im dealing with a problem when using PyQt5, i already made a QTableWidget which displays a DataFrame i prevously made in pandas (from a spreadsheet).

What im trying unsu

相关标签:
1条回答
  • 2021-01-23 18:43

    The cellDoubleClicked signal sends the row and column. So your code should look like this:

    self.tableView.cellDoubleClicked.connect(self.expandShipments)
    ...
    
    def expandShipments(self, row, column):
        item = self.tableView.item(row, column)
        print(item.text())
    
    0 讨论(0)
提交回复
热议问题