I think QAction is the way to go:
something like this works for me:
delrecords = QtGui.QAction(self) # create action
delrecords.setShortcut(QtCore.Qt.Key_Delete) # set shortcut key for
that action
YOUR_WIDGET_HERE.addAction(self.delrecords) # assign action to
widget
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