Unsolved QTextEdit keyPressEvent(enter)
-
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 Sorry, I don't understand your description. What "box" do you mean?
Did you subclass QTextEdit and overwritten keyPressEvent?
If so can you post the code? -
i want to do some "input" then i press "enter" i call the keyPressEvent
-
@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