I wrote an application where I display sql data on a QTableView+QSqlQueryModel read only table.<br><br>The current version allows you to select via mouse a record on that table and then add it to an other one, pressing an add-button.<br>
<br>I'd like to give an alternate way to do this: after record line is selected on the table I'd like to be called on the pression of enter's key and react to it just like if the add button was pressed.<br><br>
If is possible to obtain this behaviour I'd like to trap an other button too:<br>I'd like to be called when delete's key is pressed while the record line is selected.<br><br>Thanks in advance for your help.<br>
Ciao<br>Licia<br><br>