Hi,
I need to execute a function when a qlineedit "le1" get the focus.
Could somebody tell me how ask about it?
Hi,
I need to execute a function when a qlineedit "le1" get the focus.
Could somebody tell me how ask about it?
As the docs say:If you want to know when the line edit gets the focus, you might try using an event filter.focus : const bool
This property holds whether this widget (or its focus proxy) has the keyboard input focus.
Effectively equivalent to QApplication::focusWidget() == this.
Access functions:
bool hasFocus () const
See also setFocus(), clearFocus(), setFocusPolicy(), and QApplication::focusWidget().
otortos (7th April 2006)
Bookmarks