On 05-May-2013, at 10:18 PM, Wilhelm wrote:

> Looking for a solution I ended overwriting QPlainTextEdit::keyPressEvent(), 
> but I think this is the wrong way?

That's what we do. Actually, to be precise, we handle key press events in an 
evenFilter function in the widget that contains our QPlainTextEdit widget. 
That's sort of a minor detail.

We do that to handle up and down arrows, home and end keys and such that do 
special things in our application. QPlainTextEdit() handles shortcuts by 
looking for key press events, so as far as I can tell that's the only way you 
can do it.

-John Weeks

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to