Connect to the clicked()
signal from the QTableView
. See the docs for QAbstractItemView
.
Use the provided QModelIndex
from the signal to lookup the value in the table and then populate it in the QLineEdit
.
For double clicking you can use the doubleClicked()
signal.