Hello all!

I want to use QTextEdit in my chat dialog and send messages via "Enter" press.
How to change QTextEdit's behaviour (on Enter press) without reimplementing keyPressEvent???

I can't use class derived of QTextEdit, because it should be used in QT Desinger (i.e. only standart widgets are allowed).

Thanks!