[SOLVED] How to get Click Event of QLineEdit in Qt?

Issue

How to get Click Event of QLineEdit in Qt ?

I am not able to see any SLOT related to click in QLineEdit ?

Solution

You need to reimplement focusInEvent in a new class extending QLineEdit. The following links are going to help you.

  1. http://doc.qt.io/qt-5/qwidget.html#focusInEvent
  2. QLineEdit – focus event
  3. How to know if a QLineEdit got focus?
  4. QLineEdit Focus Event

Answered By – Lenin Raj Rajasekaran

Answer Checked By – Cary Denson (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *