[PyQt] How to get an event after an Enter key is pressed?

IloChab ilochab at gmail.com
Thu Jun 5 19:02:24 BST 2008


I wrote an application where I display sql data on a
QTableView+QSqlQueryModel read only table.

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.

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.

If is possible to obtain this behaviour I'd like to trap an other button
too:
I'd like to be called when delete's key is pressed while the record line is
selected.

Thanks in advance for your help.
Ciao
Licia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080605/fd9f060c/attachment.html


More information about the PyQt mailing list