Alex Rivera | Logout

How to connect focus event from QLineEdit?

Asked 2010-05-10T15:51:05.723
16

I have to connect focus event from some QLineEdit element (ui->lineEdit) to the method focus(). How can I do this?

Edit
Report

1 Answer

4

I assume you mean connect as in signals/slots, focus event isn't a signal it's a virtual method you have to override in order to change the behavior:

http://doc.qt.io/qt-5/qlineedit.html#focusInEvent

answered 2010-05-10T18:38:54.880

Your Answer