View Full Version : How can i ask if a qlineedit get focus..
otortos
7th April 2006, 18:17
Hi,
I need to execute a function when a qlineedit "le1" get the focus.
Could somebody tell me how ask about it?
jacek
7th April 2006, 18:23
As the docs say:
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().If you want to know when the line edit gets the focus, you might try using an event filter.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.