QTextEdit keyPressEvent(enter)
Unsolved
General and Desktop
-
hi, i use PyQt5 and QTextEdit.
i build small QTextEdit and i want when i click "enter" on box QTextEdit i want
to call the function keyPressEvent, but this dont work.
when i click "enter" this down on box QTextEdit .
help, tnx. -
@Dl10 Again: did you subclass QTextEdit and overwrite keyPressEvent?
Or where do you call keyPressEvent?
Here an example: http://doc.qt.io/qt-5/qtwidgets-widgets-tetrix-example.html