I'm writing an interactive interpreter with syntax highlighting, autocomplete and all, and I wanted to see if I could support readline text editing commands on demand. http://linux.die.net/man/3/readline
It's already built into Qt on OSX, (eg. Ctrl-A takes you to the beginning of the line) but I want to enable it in Linux and do it on demand (a checkbox to enable a preference to use readline keystrokes).

Is there anyway to override the standard keyboard shortcut behavior for a QTextEdit to do this?