I got some QLineEdit widgets in a dialog. After pressing the return key when input is finished, my slot is called, but after that the dialog closes . What I want to accomplish is: after pressing the return key and my code is executed the return key event is dropped. (As a result the dialog does not close).

Any ideas?