View Full Version : QLineedit::returnPressed() closes dialog?

6th January 2006, 10:29
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 :rolleyes:. 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?

6th January 2006, 10:56
I think ur Dialog closes. because the Dialog's close button has AutoDefault property set to true.

6th January 2006, 11:18
Thanx !!!
I never would have looked there... :)