Dumb question: How do I detect when a QLineEdit gets focus? Seems like there is not focus signal for QLineEdit. It seems like it can be emulated with eventfilter() and hasfocus() but is there an easier way? Sorry if it is a dumb question :)