This won't work because keyPressEvent is not a slot so it is not visible from within QtScript. Make a custom function (or even class) that will install an event filter on the widget.
This won't work because keyPressEvent is not a slot so it is not visible from within QtScript. Make a custom function (or even class) that will install an event filter on the widget.
Bookmarks