[PyKDE] lineedit on focus

Giovanni Bajo rasky at develer.com
Tue Jun 28 13:21:30 BST 2005

Danu Kusmana <danu at limabit.com> wrote:

> Im m trying to find something todo with QLineEdit object when the object
> recived focus by clicking on it. There aren't any signal like "on focus"
> for QLineEdit or is there?

Just reimplemet focusInEvent(). In the QFocusEvent you receive there is also
a reason() method which tells you how the widget got the focus (in case you
want to do something only if it got focus by mouse).

Giovanni Bajo

More information about the PyQt mailing list