Solved how to map a enter key to a QPushbutton
-
i am making an user login and after entering the password the user presses enter it should be mapped to QPushbutton . How to do It.
-
-
@jsulm I have enabled the auto default and default but it work when i make the tab focus to focus on that button . Button i want something like when i open the widget and enter user name and password and without focussing on the button and if i press enter it should proceed or it should work
-
@ManiRon What widget do you use for password? If it is QLineEdit then there is https://doc.qt.io/qt-5/qlineedit.html#returnPressed
-
@jsulm Thanks sir it worked
-
This post is deleted!