Pyqt: How to get a signal that QLineEdit is on focus?

Viewed 3249

This specific window has 2 QLineEdits: one called "User" and the other called "Password". Below them there is a keyboard created with many QPushButtons. Now, I have to tell the method connected to those buttons to print the respective letter or number in the selected QLineEdit and I'm having a hard time getting the signal for which QLineEdit is selected at the moment.

How do I do I get that signal? The application starts with "User" focused: self.User.setFocus()

Thank you.

1 Answers
Related