QLineedit::returnPressed() closes dialog?
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?
Re: QLineedit::returnPressed() closes dialog?
I think ur Dialog closes. because the Dialog's close button has AutoDefault property set to true.
Re: QLineedit::returnPressed() closes dialog?
Thanx !!!
I never would have looked there... :)